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 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2833
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change the default logger level in jboss 6.0?
 
Similar Threads
How do i change the log level in JBoss
Dynamically setting logging level (java.util.logging)
J2SE Logging - setting the log level of all children loggers
Changing the default server profile
log4j in tomcat - changing properties file