aspose file tools
The moose likes JBoss 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
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply 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: 5528

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need to rotate JBoss log file in 3 hours using periodic-rotating-file-handler in jboss 6.
 
Similar Threads
Query related to periodic-rotating-file-handler in jboss-logging.xml
Logging
how to create daily server logs in jBoss
Logging every 3Hrs using Log4j
server.log in JBoss 6