You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Schmied Alexander <Al...@systema.co.at> on 2002/02/18 15:37:45 UTC

changing the level of a complete logger-hierarchy

i want to change a complete logger-hierarchy to a specific level. so all
sub-loggers should have the same level too. this should be done without
modifying config-files.

example:
starting situation:
level of logger "package1.class1" == DEBUG
level of logger "package1.package2.class1" == INFO

Then i'd like to change the level of the hierarchy "package1" to OFF:
level of logger "package1.class1" == OFF
level of logger "package1.package2.class1" == OFF

And in the next step i'd like to set the logging levels back to the starting
situation.

thank you for helping me find an easy way to do this!

alex


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>