This content has been marked as final.
Show 2 replies
-
1. Re: log4j.xml and logfile name pattern
j-n00b Sep 27, 2010 7:42 AM (in response to lukaswu)Hi Luk!
Unfortunately, there is no such option in the original log4j class. But you can have a look at the class "org.apache.log4j.DailyRollingfileAppender". Method "activateOptions()" contains the following code:
{code}
scheduledFilename = fileName+sdf.format(new Date(file.lastModified()));
{code}
What you can do is extend the log4j class and change the behaviour of the method. Then you add your jar to JBoss and use your class in the log4j config.
cheers,
Andre
-
2. Re: log4j.xml and logfile name pattern
lukaswu Sep 27, 2010 8:50 AM (in response to j-n00b)Well... That's what I expected... Since it is HA production for time being I wil give it up.
Thank you anyway.
--
luk