This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change the default logger level in jboss 6.0?

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic