Forums Register Login

Log4j

+Pie Number of slices to send: Send
Hi ,
I have the following log4j.properties file :


Even this layout is attach to the FileAppender . It is not making new XML file after the capacity gone above the MaxFileSize.

Can any have idea to roll over the new file

Thanks and regards
+Pie Number of slices to send: Send
Welcome to JavaRanch.

FileAppender does not support rolling over. Use a RollingFileAppender instead.
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 713 times.
Similar Threads
Upload Files in User Defined Directories/Database
editing a line of a txt file with a thousands of line
unable to downladmultiple file?
Error reading properties file
referring to a file within src folder
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:34:14.