• 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

Weblogic log4j.xml change the log level of classes (on-the-fly)

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I posted about this previously and found a website that demonstrates the exact need I have;

http://nayidisha.com/techblog/mycontent/posts/nd-utils/site/loggerAdmin.html

Logger Admin: This jsp tag allows users to change the log level of classes and/or packages in the JVM at runtime. (On the fly).
This will work in a web application even if it not exploded (that is, it is war’red up). (For a solution for changing logging levels in a spring based web application where the web application is exploded, then see this solution from the Spring Javadocs). However, the utility here works for a war’red up war file that is being used in production. After installation, a ‘reload’ button will reload properties from existing log4j.properties file. No restarts needed to change the log level in production. If you think that a certain class is causing an error, bump up the log level (by package name), examine the logs and reset everything by reloading the log4j.propeties/log4j.xml file via a secure web page.

If you take a look at the URL, it has logger's listed that you can change the log level value of on-the-fly w/out restarting managed server. Can anyone explain how this can be accomplished(in detail)? Unfortunately, the link to download the utility is broken!
 
Ranch Hand
Posts: 376
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can find a good article on it at: http://www.theserverlabs.com/blog/2010/04/22/dynamically-changing-log-level-with-weblogic-log4j-jmx-and-wlst/
 
reply
    Bookmark Topic Watch Topic
  • New Topic