You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Dominik Psenner (Commented) (JIRA)" <ji...@apache.org> on 2011/09/28 15:28:45 UTC

[jira] [Commented] (LOG4NET-226) Allow to specify file name as wildcard pattern

    [ https://issues.apache.org/jira/browse/LOG4NET-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116465#comment-13116465 ] 

Dominik Psenner commented on LOG4NET-226:
-----------------------------------------

I would target this issue only in the reimplementation of the RFA. What do you think Stefan?
                
> Allow to specify file name as wildcard pattern
> ----------------------------------------------
>
>                 Key: LOG4NET-226
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-226
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 1.2.9, 1.2.10, 1.2.11
>         Environment: Windows
>            Reporter: Maxim Fateev
>             Fix For: 1.2 Maintenance Release
>
>
> Change 707809 fixes issue with windows file name extension. 
> From filename.txt.1, filename.txt.2 it changes it to filename.1.txt, filename.2.txt. 
> But it is still limiting form some use cases. I need to integrate logs with existing logging infrastucture that requires file names to be filename_0.log, filename_1.log.
> I propose to add additional property to specify filename as a format pattern. I recommend using standard .net string format. So in my case file name would be filename_{0}.log.
> It would also support other cases like requirement for filename to be filename_00.log, filename_01.log. Just specify format as filename_{00}.log
> Also property to specify initial counter value is necessary to support my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira