logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Bröker" <andi.broe...@t-online.de>
Subject activate/ deactivate Logger with configuration file
Date Wed, 29 Jan 2003 19:20:23 GMT
Hello,

i hope this is now the right group. I want to solve the following problem.
The thing i need is a different logger control. Now i use two logger to
generate logging informations. My class looks like:

...
Logger loggerOne = (Logger)getLogger(MyClass.class.getName());
Logger loggerTwo = (Logger)getLogger(MyClass.class.getName());
...
loggerOne.info("message");
loggerTwo.info("another message);
...
My, hopefully simple questions, is the folowing: Is it possible to activate,
or deactivate respectively, one of my loggers
using the log4j configuration file. Thanks for any assistance in advance.

Andreas




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message