Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j " Watch "Log4j " New topic
Author

Log4j

AnshumanSrivastava Srivas
Greenhorn

Joined: Aug 06, 2008
Posts: 4
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
Welcome to JavaRanch.

FileAppender does not support rolling over. Use a RollingFileAppender instead.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: Log4j
 
Similar Threads
editing a line of a txt file with a thousands of line
unable to downladmultiple file?
Upload Files in User Defined Directories/Database
referring to a file within src folder
Error reading properties file