You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by yanv <po...@yahoo.com> on 2009/03/08 12:10:58 UTC

how to set log file name with template?

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