Yes that's it thanks, I wonder why the examples given by log4net are not good, but now it's corrected.
> -----Original Message----- > From: Ron Grabowski [mailto:[EMAIL PROTECTED] > Sent: lundi 31 janvier 2005 19:01 > To: Log4NET User > Subject: Re: Log format (conversionPattern) > > Instead of %newline, try %n. Instead of %message, use %m. This is what > I use on my FileAppenders: > > <layout type="log4net.Layout.PatternLayout,log4net"> > <param name="ConversionPattern" value="%5p %d{yyyy-MM-dd hh:mm:ss tt} > (%c:%L) - %m%n" /> > </layout> > > --- Elise DUPONT <[EMAIL PROTECTED]> wrote: > > > > > > > Hi all, > > > > I just tried Log4Net, and hope my question is not a FAQ. > > > > Before to post a message I looked in the web Mailing List Details > > (but > > it seems there is a bug). > > > > > > > > I copied / pasted the default appender for Text files, that is: > > > > > > > > <appender name="FileAppender" > > type="log4net.Appender.FileAppender"> > > > > <file value="D:\\CODA\\VisualRisk\\Logs\\log-file.txt" /> > > > > <appendToFile value="true" /> > > > > <layout type="log4net.Layout.PatternLayout"> > > > > <conversionPattern value="%date [%thread] %-5level > > %logger [%ndc] - %message %newline" /> > > > > </layout> > > > > </appender> > > > > > > > > > > > > And the result is strange: I cuts the first letter of some words: > > > > > > > > 2005-01-31 18:05:09,249ate [1804hread] WTest.Logger.Log(c:\documents > > and > > settings\ed\my documents\visual studio > > projects\wtest\wtest\log.cs:62)evel WTest.Logger.Log(c:\documents and > > settings\ed\my documents\visual studio > > projects\wtest\wtest\log.cs:62)ogger [ > > > > dc] - 8essage > > > > ewline > > > > > > > > > > > > Do you know what I did wrong? > > > > > > > > Regards, > > > > > > > > Elise > > > > >
