File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6." Watch "Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6." New topic
Author

Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6.

Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Hi,
In jboss-logging.xml property periodic-rotating-file-handler in which we have suffix=".yyyy-MM-dd"> <!-- To roll over at the top of each hour, use ".yyyy-MM-dd-HH" instead -->.
By using ".yyyy-MM-dd-HH" we can get log file rotation per hour. I want to configure it per 5 hours. How can I get this done.

Please help. Thanks in advance!!!

Regards.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

You can't.


JBoss In Action
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Thanks Peter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6.