RE: Using log4net.Util.PatternString in a PatternLayout

2008-05-08 Thread Roy Chastain
-- Roy Chastain -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 21:35 To: Log4NET User Subject: Re: Using log4net.Util.PatternString in a PatternLayout The PatternString used for the Header and Footer is converted to a string at configur

Re: Using log4net.Util.PatternString in a PatternLayout

2008-05-07 Thread Ron Grabowski
The PatternString used for the Header and Footer is converted to a string at configuration time using the internal PatternStringConverter class. You can easily write your own PatternLayout: public class HeaderFooterPatternStringLayout : PatternLayout { private PatternString headerPatternStri

Re: Using log4net.Util.PatternString in a PatternLayout

2008-05-07 Thread Bill Schmidt
I had noticed it too. My assumption as to the creation time stamp is that when log4net rolls the files, It copies the current log file to another file, and clears out the buffer of the current log, since the log that it has is currently open, this is easier(less prone to errors) and faster than c

RE: Using log4net.Util.PatternString in a PatternLayout

2008-05-07 Thread Eric Chamberlain
I have just recently had the task of archiving off some log4net-generated files created by a rolling file appender and have found that they all have the same creation date. This appears to be a result of the method used to roll the files. Perhaps it's a feature? In any case, it surprised me. F