Issue Details (XML | Word | Printable)

Key: LOG4NET-64
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ron Grabowski
Reporter: Joshua Bassett
Votes: 4
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Log4net

[PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.

Created: 18/Jan/06 08:07 AM   Updated: 09/Nov/09 07:35 AM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.11

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LOG4NET-64.patch 2008-10-12 05:32 PM Ron Grabowski 11 kB
Text File Licensed for inclusion in ASF works LOG4NET-64.patch 2008-10-10 11:48 PM Ayende Rahien 5 kB
Text File Licensed for inclusion in ASF works patch.txt 2006-01-18 08:10 AM Joshua Bassett 5 kB
Issue Links:
Dependants
 

Resolution Date: 25/Oct/08 02:04 AM


 Description  « Hide
Normally, when the log file is rolled the file name extension is not preserved.

For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.

However, this may not be desired in all cases and it may be necessary to preserve the log file name extension when the log file is rolled. Most notably, this feature is useful for maintaining file associations under Windows so that all log files can be associated with a particaular text viewer.

For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.

This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender class which is used to toggle this behavior.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.