jboss - Is it possible to change log4j trace level without restart of WebLogic or GlassFish? -


is possible change log4j trace level without restart of weblogic or glassfish?
use -dlog4j.configuration jvm argument set log4j config file.
, neither weblogic or glassfish reloads changes if log4j.xml modified.

in jboss(at least in jboss 5.1) there service org.jboss.logging.log4jservice allows set how in seconds log4j configuration file checked changes.
there in weblogic , glassfish?

yes possible.there more 1 approach depending on doing app.

you can change in admin console going managed server's logging tab. server output itself, not apps running on server.

using wlst check here (it involve fair amount of work): http://www.theserverlabs.com/blog/2010/04/22/dynamically-changing-log-level-with-weblogic-log4j-jmx-and-wlst/

setting via code in app: dynamically changing log4j log level


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -