logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Kruk <mes...@gmail.com>
Subject Re: exception logging
Date Wed, 05 Dec 2012 15:33:15 GMT
OK, thanks, I filed.
Here's another log4j -> log4j2 migration question.
In log4j I have this appender:

   <appender name="useractionfile"
class="org.apache.log4j.rolling.RollingFileAppender">
      <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
         <param name="fileNamePattern"
value="${catalina.base}/logs/user.%d.gz"/>
      </rollingPolicy>
      <layout class="org.apache.log4j.EnhancedPatternLayout">
         <param name="ConversionPattern" value="%d{yyyyMMdd HH:mm:ss} %m%n"/>
      </layout>
   </appender>

which magically keeps the current log file named user.2012-12-07

I don't see a way to achieve the same in log4j2?


On Wed, Dec 5, 2012 at 2:34 AM, Ralph Goers <ralph.goers@dslextreme.com> wrote:
> Jira

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


Mime
View raw message