Re: How to address only one of the RootLogger?

2010-08-15 Thread BenXS
Ok, thank you. That means whenever I code in the java source log.info(.); then the log output goes to ALL specified RootLogger? Ben -- View this message in context: http://old.nabble.com/How-to-address-only-one-of-the-RootLogger--tp29441603p29444649.html Sent from the Log4j - Users maili

Re: Does "org.apache.commons.logging.Log" use log4j.properties as well?

2010-08-15 Thread Tim Watts
Commons Logging is a wrapper around other logging facilities. If Log4J is in the classpath it will "discover" it and use it. See http://commons.apache.org/logging/ On Sun, 2010-08-15 at 03:47 -0700, BenXS wrote: > I learned that I have to specify/import log4j in a java prgm as follows: > > impor

Re: How to address only one of the RootLogger?

2010-08-15 Thread Tim Watts
You could do something like this: In log4.properties: log4j.logger.only.paul=INFO,paul log4j.additivity.only.paul=false In source code: Logger paul = Logger.getLogger("only.paul"); paul.info("some info"); But I'm not so sure this is good from a design p

Does "org.apache.commons.logging.Log" use log4j.properties as well?

2010-08-15 Thread BenXS
I learned that I have to specify/import log4j in a java prgm as follows: import org.apache.log4j.Logger; However I found now a Java program where the logging is specified as follows: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; Surprisingly this commons

How to address only one of the RootLogger?

2010-08-15 Thread BenXS
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.appe