• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do i change the log level in JBoss

 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
code within jboss-4.2.2.GA\server\default\conf\jboss-log4j.xml:


How i am trying to change the Level (This is not my screenshot, i googled it, but i see the same screen):


i put "CUSTOM" in parameter "logger"
and "FATAL" in parameter "level"

then i click "invoke" under "reconfigure()"

Still the log level remains "INFO"
I am pretty sure there is something wrong with my logger name, so, if apppender name is not log name, what is ?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Logger/Category is not the same as an appender. A logger/category is configured as follows in the log4j.xml:


So if you want to change this level from INFO to FATAL, in the jmx-console screen you can use the "org.jboss,management" as the logger name.
 
salvin francis
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks !!!
It worked fine !!!

btw Jaikiran Pai,

I think you can help me in another problem, look at this:
https://coderanch.com/t/431844/General-Computing/Tomcat-JBoss-Weblogic-evaluating-Differences

In continuation to the point, wht if i want to give a logger a name ? or is it same as category ?
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

salvin francis wrote:
In continuation to the point, wht if i want to give a logger a name ? or is it same as category ?



You can use any name to the logger/category:


Then in your code:

 
salvin francis
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks mate, it works.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic