logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: support for Mono
Date Fri, 26 Aug 2005 21:53:09 GMT
 

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

If you have not explicitly named the thread then log4net just uses the
value of AppDomain.GetCurrentThreadId(). The value is whatever the
runtime decides to use.

Cheers,
Nicko



> 
> >>-----Original Message-----
> >>From: Julien Sobrier [mailto:julien@sobrier.net]
> >>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
> >>
> 

Mime
View raw message