This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am currently using log4j as my logging system. I am curious if log4j can generate dynamic log file. As you know log4j.properties can allow users to set up various of setting. Stupid me tried to imagine the following can be valid:
log4j.appender.myApp.File=c:/%d{ISO8601}.log
Unfortunately, that just act like static log file. I just want to know is there any dynamic way to generate dynamic logger? Such as 20060313085033.log, or 20060313185533 ? Can I do it by configure the properties file ?
Aren't you just describing DailyRollingFileAppender?
YuenLian Wu
Ranch Hand
Joined: Nov 16, 2005
Posts: 73
posted
0
Not really, the dailyrolling thing is just to add the time stamp to your preset log file name, it's not dynamic at all. I want wholely dynamic, like wholely wheat !!! [ March 15, 2006: Message edited by: YuenLian Wu ]