On 04/13/2012 12:53 AM, sdoca sdoca wrote:
Hi,
Is it possible to set up a RollingFileAppender so that the current log
file (i.e. today's) doesn't have a date as part of the filename? Then
when the log rolls over, the date is appended to the filename similar to
how log4j's DailyRollingFileAppender works?
Thanks!
Yes, that's possible, see
http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy
Then scoll down to the example: Example: Sample configuration of a
RollingFileAppender using a TimeBasedRollingPolicy
(logback-examples/src/main/java/chapters/appenders/conf/logback-RollingTimeBased.xml)
--
I can't influence text below here.
This email and any attachment may contain confidential information which is
intended for use only by the addressee(s) named above. If you received this
email by mistake, please notify the sender immediately, and delete the email
from your system. You are prohibited from copying, disseminating or otherwise
using the email or any attachment.
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user