Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Renaming log file

807603Jan 28 2008 — edited Jan 28 2008
I am using Daily Rolling File Appender to generate log files.

Currently my log files are generated as "Filename.log.date"

I would like to rename this as "Filename.log.sequence of numbers" like
"Filename.log.1", "Filename.log.2" and so on.

Also as each day passes, the file which was named as "Filename.log.1" should be renamed as "Filename.log.2"

Please provide suggestions as to what to do.

Edited by: thomas27 on Jan 27, 2008 11:09 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2008
Added on Jan 28 2008
7 comments
502 views