logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Loman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1878) Dates in filename for RollingRandomAccessFile appender
Date Tue, 11 Apr 2017 22:52:41 GMT
Juan Loman created LOG4J2-1878:

             Summary: Dates in filename for RollingRandomAccessFile appender
                 Key: LOG4J2-1878
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1878
             Project: Log4j 2
          Issue Type: Improvement
          Components: Appenders
            Reporter: Juan Loman

The feature for using dates as part of the current logfile (by omitting the filename attribute
and using the filepattern instead) has been implemented for {{RollingFileAppender}} but not
for {{RollingRandomAccessFileAppender}}.

The following config should work:
<RollingRandomAccessFile name="Application" filePattern="logs/test.%d{yyyy-MM-dd-HH-mm}.log">
    <PatternLayout pattern="%d{DATE} [%p] %X{RequestId} (%t) %c: %m%n"/>
        <TimeBasedTriggeringPolicy interval="1" modulate="true"/>

Currently it emits {code}ERROR No filename was provided for FileAppender with name Application{code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message