In Java I use currently Log4j as follows:

import org.apache.log4j.Logger;
static Logger log = Logger.getLogger(this.getClass().getName())
...
log.info("some info)";


In the file "log4j.properties" I defined multiple RootLoggers like

log4j.rootLogger=INFO, paul, speciallog, ultra
....
log4j.appender.paul=org.apache.log4j.FileAppender
...

How can I now direct some log output from inside a java program to ONLY
the "paul" fileappender?

In other words: How do I have to specify in a java program that the
log output should go ONLY to the file specified in the log4j.properties file
which is declared for "paul"?

Do I have to write something like

log.info("paul","some info")

Ben?

-- 
View this message in context: 
http://old.nabble.com/How-to-address-only-one-of-the-RootLogger--tp29441603p29441603.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to