logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tom ONeill" <beagleboythefi...@hotmail.com>
Subject Re: log4j using appender but not specified pattern
Date Fri, 03 Oct 2003 11:43:10 GMT
Hi Ceki,

I dont actually get the internal logging output. The root element of the 
properties is as follows:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" 

However I dont get the debug output so Im none the wiser there....


>From: Ceki Gülcü <ceki@qos.ch>
>Reply-To: "Log4J Users List" <log4j-user@jakarta.apache.org>
>To: "Log4J Users List" <log4j-user@jakarta.apache.org>
>Subject: Re: log4j using appender but not specified pattern
>Date: Fri, 03 Oct 2003 11:14:20 +0200
>The configuration directives look good. What does the log4j internal 
>logging output say?
>At 08:36 AM 10/3/2003 +0000, tom ONeill wrote:
>>Hi all,
>>I was wondering if anyone could give me some ideas on what might be 
>>causing a small problem that I have. In my log4j properties file (XML 
>>format) I have set up a particular appender that writes to a file. I have 
>>also specified a particular Pattern for the appender. Now the logging 
>>entries are being written to the appender but are not using the pattern 
>>that I specified.
>>The appender is specified in the logging file as follows
>><appender name="PerfAppender" class="org.apache.log4j.FileAppender">
>>            <param name="File"   value="Perf.log" />
>>            <param name="Append" value="true" />
>>            <layout class="org.apache.log4j.PatternLayout">
>>               <param name="ConversionPattern" value="%d - %m%n"/>
>>            </layout>
>>This appender is then associated with a a particular logger as follows:
>><logger name="MainLog">
>>            <level class="de.start.sip.tools.logging.OurLogLevel" 
>>            <appender-ref ref="PerfAppender" />
>>When I execute my application the Perf.log file is being written however 
>>it does not include the datetime which I would expect from using %d in the 
>>specified pattern for the appender. Not all the code is my own so its 
>>possible that there is somthing going on that I dont know about but what I 
>>need to know is the possible ways in which an appender could be used 
>>without actually using the specified pattern?
>Ceki Gülcü
>      For log4j documentation consider "The complete log4j manual"
>      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
>      import org.apache.Facetime;
>      ApacheCon US 2003, 18-21 November http://apachecon.com/
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

Help STOP SPAM with the new MSN 8 and get 2 months FREE*  

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message