aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to change the default logger level in jboss 6.0? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to change the default logger level in jboss 6.0?" Watch "How to change the default logger level in jboss 6.0?" New topic
Author

How to change the default logger level in jboss 6.0?

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
Hello All,

I need to change the default logger level (info as default) of jboss 6.0.
Is there any way to change that from my application itself?

Thank You!
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2861
    
  11

JBoss is instrumented through JMX, so in theory you should be able to get an Mbean, prove to it you have the necessary admin credentials, and then tell it to change the log level. However, that's about as much as I can tell you. Whenever I need to change the log level, I just make the change in jboss-log4j.xml in the server/default/config directory.
Jj Programmer
Greenhorn

Joined: Oct 30, 2010
Posts: 1
You can change the default log level by passing it to the run.bat or run.sh
The above option ensures that only errors are logged.
 
Don't get me started about those stupid light bulbs.
 
subject: How to change the default logger level in jboss 6.0?