Issue Details (XML | Word | Printable)

Key: LOG4NET-85
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tal G
Votes: 0
Watchers: 2
Operations

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

Add .txt to the log file name

Created: 25/Jul/06 07:53 AM   Updated: 26/Jul/06 07:08 PM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.10
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works RollingFileAppender.patch 2006-07-26 07:08 PM Mike Blake-Knox 15 kB
Environment: All

Resolution Date: 25/Jul/06 11:16 PM


 Description  « Hide
When working with RollingFileAppender, the files name is end with some id like log.0, log.2 .. log.20.
But those file extensions are not associated with a text file editor such as notepad.

I suggest adding .txt to those names such as log.1.txt, log.2.txt .. log.20.txt

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ron Grabowski added a comment - 25/Jul/06 11:16 PM
Yes this would be nic to have but adding support for this isn't just a matter of adding one or two lines of code.

Duplicate of LOG4NET-64.

Tal G added a comment - 26/Jul/06 06:22 AM
It is not a line or two, but I did it in 15 minutes. Maybe I didn't do it in the nicest way, but anyway it should not take more than one day of one programmer.

Ron Grabowski added a comment - 26/Jul/06 11:22 AM
We always welcome patches. If you think others would benefit from your solution attach it to this issue.

Mike Blake-Knox added a comment - 26/Jul/06 07:08 PM
The need is also met by the Preserve File Extension code (originally from Joshua Bassett and later modified by me).

The patch was created using the latest version in SVN.

Mike