Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DatePattern and the final rolled file name

Status
Not open for further replies.

BPetro

Programmer
Oct 1, 2002
59
0
0
US
What I read seems to indicate that added characters to the datePattern will be just put into the final name without altering the periodicity of the rolling schedule. But adding .log doesn't seem to work... I can create my own version like MyDailyRollingFileAppender, but if its already there I don't want to go messing around with code. Any suggestions? What I want to accomplish is for the final rolled file to continue to end in ".log" instead of ending in a date. This could look like either:
instead of server.log.2008-11-04
we want:
server.log.2008-11-04.log
or
2008-11-04.server.log

So, other than copying and altering another named version of DailyRollingFileAppender any thoughts or ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top