Nicko Cadell wrote:
The %timestamp is the number of milliseconds elapsed since the start of
the application until the creation of the logging event. This would be
expected to be a number that is relatively low for a short running
application. Is this what you want?

If you want the date then use %date.

For details of the patterns see:
http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayo
ut.html
Cheers,
Nicko

Sorry, my concern was about %theqd: should it be a negative number?

-----Original Message-----
From: Julien Sobrier [mailto:[EMAIL PROTECTED] Sent: 26 August 2005 16:04
To: Log4NET User
Subject: support for Mono

Hello,
Log4net works great for me with .Net 1.1. But the time stam doesn't make sense wit Mono 1.1/Linux:
1031  INFO [-1210304288]
1045  WARN [-1210304288]

My config look like:
<log4net>
       <!-- Print messages on the console -->
<appender name="Console" type="log4net.Appender.ConsoleAppender">
               <layout type="log4net.Layout.PatternLayout">
<!-- Pattern to output the caller's file name and line n umber --> <conversionPattern value="%-4timestamp %5level [%thread] %25logger - %message %newline" />
               </layout>
       </appender>

       <root>
               <level value="DEBUG" />
               <appender-ref ref="Console" />
       </root>
</log4net>


Thank you
Julien

Reply via email to