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 2006/01/18 05:58:05 UTC

DO NOT REPLY [Bug 38305] New: - If property configuration file refers to logger "org.apache.log4j", unexpected error message displayed in config file.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38305

           Summary: If property configuration file refers to logger
                    "org.apache.log4j", unexpected error message displayed
                    in config file.
           Product: Log4j
           Version: 1.3alpha
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: mwomack@apache.org


When using the PropertyConfigurator class, if the org.apache.log4j logger is
configured with a level, as in:

log4j.logger.org.apache.log4j=WARN

then an error message of:

Could not find appender TEMP_LIST_APPENDER

will be displayed.

PropertyConfigurator.doConfigure() sets up the temp list appender, but it
appears that the call to parseCatsAndRenderers() ends up removing this appender
so that when the finally block calls detachListAppender(), it reports this
error.  Might only happen on the first configuration.  Subsequent
reconfigurations work?

Settings similar to these should reproduce.  The key is the setting of
org.apache.log4j:

log4j.debug=TRUE
log4j.threshold=ON

log4j.rootLogger=DEBUG,A

log4j.appender.A=org.apache.log4j.FileAppender
log4j.appender.A.File=output/watchdog.FileWatchdog.test2.txt
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%p - %m%n

log4j.logger.org.apache.log4j=WARN
log4j.logger.org.apache.log4j.watchdog.FileWatchdogTestCase=DEBUG

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
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 38305] - If property configuration file refers to logger "org.apache.log4j", unexpected error message displayed in config file.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38305


kay.abendroth@raxion.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kay.abendroth@raxion.net




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
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 38305] - If property configuration file refers to logger "org.apache.log4j", unexpected error message displayed in config file.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38305


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From carnold@apache.org  2007-08-22 19:01 -------
I believe bug is log4j 1.3 specific which is abandoned so marking WONTFIX.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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