This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 5838
    
    7

You can't.


JBoss In Action
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Thanks Peter.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6.