logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yanv <po4...@yahoo.com>
Subject how to set log file name with template?
Date Sun, 08 Mar 2009 11:10:58 GMT

Hi,
i use logj4 to write logs that rotates every month, my problem is that
current log file is: app.log
and every rotation makes files with addition to the extension with log
number like 1,2,3.
I need concurrent log file will also have this addition, for example if now
is March i nee that current log file will be: app.log_3 rather than app.log.

currently i use:
The og4j.appender.MyClass.File=./app.log 
is it possible to change it to something like:
og4j.appender.MyClass.File=./app.log_MM
-- 
View this message in context: http://www.nabble.com/how-to-set-log-file-name-with-template--tp22396821p22396821.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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