Josh, The DatePattern supports arbitrary embedded text if it is single quote escaped. e.g.
<datePattern value="yyyyMMdd-HHmm'.txt'" /> See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h tml/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp for more details. The numbered postfix cannot currently be customised. If you need to customise that then you will need to copy the RollingFileAppender into your assembly and modify it to your requirements. Cheers, Nicko > -----Original Message----- > From: Joshua Bassett [mailto:[EMAIL PROTECTED] > Sent: 10 May 2005 03:28 > To: [email protected] > Subject: Rolling File Appender > > Hi All, > > I've been happily using log4net in my latest commercial C# > .NET windows app....great work to all involved...it makes my > life a lot easier ;) > > My application relies on the RollingFileAppender for > appending log messages and rolling the log file (named > "log.txt") on both date and size. This is currently working > very nicely. However, it has now been requested by the powers > that be that my application rolls its log files using the > naming convention > > "log.1.txt" and "log.yyyymmdd.txt" > > instead of > > "log.txt.1" and "log.txt.yyyymmdd". > > The reason being that the former is still easily opened using > Notepad due to it preserving the .txt file extension. > > Can log4net currently support this behaviour or do I need to > make some changes to the RollingFileAppender class? > > Thanks in advance, > > -- > Josh >
