10 Jul 19:38
[jira] Created: (LOG4NET-165) RollingFileAppender file names do not support UTC
From: Miguel L (JIRA <jira <at> apache.org>
Subject: [jira] Created: (LOG4NET-165) RollingFileAppender file names do not support UTC
Newsgroups: gmane.comp.apache.logging.log4net.devel
Date: 2008-07-10 17:38:31 GMT
Subject: [jira] Created: (LOG4NET-165) RollingFileAppender file names do not support UTC
Newsgroups: gmane.comp.apache.logging.log4net.devel
Date: 2008-07-10 17:38:31 GMT
RollingFileAppender file names do not support UTC
-------------------------------------------------
Key: LOG4NET-165
URL: https://issues.apache.org/jira/browse/LOG4NET-165
Project: Log4net
Issue Type: Improvement
Affects Versions: 1.2.10
Environment: Windows Vista
Reporter: Miguel L
There seems to be not way to use UTC dates for RollingFileAppenders names.
In my case :
RollingFileAppender rfa = new RollingFileAppender();
rfa.DatePattern = "yyyy-MM-dd HH";
rfa.RollingStyle = RollingFileAppender.RollingMode.Date;
rfa.StaticLogFileName = false;
PatternLayout layout = new PatternLayout("%utcdate %m%n");
I managed to get the log lines in UTC, but not the log file names.
I could got it by a quick & dirty implementation of a UTCRollingFileAppender with custom constructor :
public UTCRollingFileAppender()
{
m_dateTime = new UniversalDateTime();
}
(Continue reading)
RSS Feed