You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dylan Nicholson (JIRA)" <ji...@apache.org> on 2018/05/13 22:53:00 UTC
[jira] [Closed] (LOG4NET-598) RollingFileAppender.DatePattern
affects file extension
[ https://issues.apache.org/jira/browse/LOG4NET-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dylan Nicholson closed LOG4NET-598.
-----------------------------------
Resolution: Not A Problem
Sorry, found the PreserveLogFileNameExtension option (I'd think the default should be true but no dramas)
> RollingFileAppender.DatePattern affects file extension
> ------------------------------------------------------
>
> Key: LOG4NET-598
> URL: https://issues.apache.org/jira/browse/LOG4NET-598
> Project: Log4net
> Issue Type: Bug
> Reporter: Dylan Nicholson
> Priority: Minor
>
> The way DatePattern is implemented means it is always appended to the end of the standard Filename when rolling over, but that means you end up with a file that isn't .log (unless you add yet another .log to the end of the DatePattern), and so won't open easily for viewing on many O/S's (esp. MacOS).
> I'd expect to be able to say that I want the static file to be called, e.g., "Logs/current.log" but each rolled over file to follow the pattern "Logs/archived-\{yyyy-mm-dd}.log"
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)