Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Does "additivity" flag in work only with log4j or with Apache Commons Logging as well?

Thread Tools

Does "additivity" flag in work only with log4j or with Apache Commons Logging as well?

Gianni Galore
Posts: n/a
In a java class I created a (simplified) logger as follows:

package aaa;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class bbb {
private final Log log = LogFactory.getLog(getClass());
// or
private final Log log = LogFactory.getLog("aaa.bbb");"hello");

In the I defined:

log4j.rootLogger=INFO, console, logfile eAppender

Unfortunately the log output goes always to all appenders from RootLogger and not to the special logfile
for my particular module.


Does the additivity flag apply only to pure log4j Loggers rather than Apache Commons Logging?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
log4j/commons-logging issue? Facade Java 3 10-11-2008 09:26 PM
why "package" does not exist? www Java 2 08-22-2007 08:34 AM
Apache FileUpload - java.lang.NoClassDefFoundError: org/apache/commons/io/FileCleaner Java 2 03-16-2006 09:20 AM
commons and log4j initializing in other web server applications Java 0 11-18-2005 02:14 AM
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory Python 1 06-22-2004 10:58 PM