[ 
https://issues.apache.org/jira/browse/LOG4NET-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Grabowski updated LOG4NET-64:
---------------------------------

    Attachment: LOG4NET-64.patch

Based on the two earlier patches for this ticket.

This patch enables the last log file to be recognized. If a directory already 
has these files:

 log.1.txt
 log.2.txt

log4net will recognize that logging should resume with log.3.txt. The original 
RollingFileAppender had supported this but the first two patches broke that 
functionality.

This patch also enables the rolling date option and the composite option to 
correctly preserve the file extension:

 log.2008-10-12.1.txt
 log.2008-10-12.2.txt
 log.2008-10-12.3.txt
 log.2008-10-13.1.txt
 log.2008-10-13.2.txt
 log.2008-10-13.3.txt

> [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file 
> name extension when rolling the log file.
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-64
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-64
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.9
>            Reporter: Joshua Bassett
>            Assignee: Ron Grabowski
>         Attachments: LOG4NET-64.patch, LOG4NET-64.patch, patch.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to