-
1. Re: Log Rotation via jboss-logging.xml on AS 6
pathduck Jul 13, 2011 11:04 AM (in response to codecab)Same thing here, while for me Jboss only rotates 1 file, as if max-backup-index was set to 1. I tried setting a very low value to rotate-size, like 1k, and it only overwrites the server.log.1 file, never creates a .2 file. I have set the index to 5 files.
This is on RHEL 6, java 1.6_24, JBoss 6.0.0 "Neo".
<!-- A size based file rolling appender --> <size-rotating-file-handler file-name="${jboss.server.log.dir}/server.log" name="FILE" autoflush="true" append="true" rotate-size="2m" max-backup-index="5"> <error-manager> <only-once/> </error-manager> <formatter> <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/> </formatter> </size-rotating-file-handler>
Very annoying, I really want the size-based handler to work so I don't have to keep deleting the old log-files
Really wish there was some better available documentation on this new logger framework.
-
2. Re: Log Rotation via jboss-logging.xml on AS 6
jaikiran Jul 13, 2011 12:48 PM (in response to pathduck)Known bug https://issues.jboss.org/browse/JBAS-8843. Fixed in a later version.
-
3. Re: Log Rotation via jboss-logging.xml on AS 6
pathduck Jul 13, 2011 3:10 PM (in response to jaikiran)jaikiran pai wrote:
Known bug https://issues.jboss.org/browse/JBAS-8843. Fixed in a later version.
I was afraid of that... so it's closed for the bugfix release 6.1 which is not out yet...
Moving to 7.0 to fix it is a bit too bleeding edge for me at the moment, and I'm not installing a pre-release in this system.
Any other ideas on how we could fix this?
EDIT; never mind, downloading the jboss-logmanager.jar from the Jira seems to have fixed it, at least for me on Linux.
Thank you Jaikiran
-
4. Re: Log Rotation via jboss-logging.xml on AS 6
jaikiran Jul 21, 2011 4:28 AM (in response to pathduck)Stian Lund wrote:
jaikiran pai wrote:
Known bug https://issues.jboss.org/browse/JBAS-8843. Fixed in a later version.
I was afraid of that... so it's closed for the bugfix release 6.1 which is not out yet...
You can get it from our nightly builds http://community.jboss.org/thread/161386.
6.1.0 plan is here http://community.jboss.org/wiki/AS610StatusExecutiveSummary