You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2008/11/18 12:40:01 UTC
DO NOT REPLY [Bug 46226] New: log4j.properties not using the right
log level
https://issues.apache.org/bugzilla/show_bug.cgi?id=46226
Summary: log4j.properties not using the right log level
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: AIX
Status: NEW
Severity: minor
Priority: P2
Component: Configurator
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: jochenhebbrecht@gmail.com
Hi,
I'm having the following log4j.properties file:
-----
log4j.rootLogger=WARN, General
log4j.appender.General=org.apache.log4j.ConsoleAppender
log4j.appender.General.layout=org.apache.log4j.PatternLayout
log4j.appender.General.layout.ConversionPattern=%d [%-5p] (%F:%L) - %m%n
log4j.appender.General.Threshold=INFO
log4j.appender.Rolling=org.apache.log4j.RollingFileAppender
log4j.appender.Rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.Rolling.layout.ConversionPattern=%d [%-5p] %c - %m%n
log4j.appender.Rolling.File=<PATH_TO_FILE>
log4j.appender.Rolling.MaxFileSize=128KB
log4j.logger.be.roularta.trimspacer.web.tags=ERROR, General
-----
As you can see, everything in be.roularta.trimspacer.web.tags should
be logging for ERROR, but not for DEBUG!
I'm using this code:
-----
package be.roularta.trimspacer.web.tags;
...
public class TrimSpacesTag extends BodyTagSupport {
....
private static final Logger LOGGER =
Logger.getLogger(TrimSpacesTag.class);
....
public int doEndTag() throws JspException {
....
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(bucket+" is true: clearing body");
}
....
-----
But Log4j is still spitting out some debugging for the classes in the
be.roularta.trimspacer.web.tags package.
What did I configure wrong? I tried the mailing list first, but after
subscribing, I was still unable to post some message. I don't think this is a
bug, but a bad configuration at my side
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 46226] log4j.properties not using the right log
level
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46226
Curt Arnold <ca...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Curt Arnold <ca...@apache.org> 2009-08-04 20:05:30 PDT ---
Most likely there is another log4j.properties or log4j.xml on the class path.
Sure you have figured it out or have forgotten it by now. log4j-user would have
been the right place for it. Closing as INVALID.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org