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 2002/05/23 17:40:31 UTC
DO NOT REPLY [Bug 9357] New: -
Misleading warning: result of incorrect code in ConsoleLogger
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9357>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9357
Misleading warning: result of incorrect code in ConsoleLogger
Summary: Misleading warning: result of incorrect code in
ConsoleLogger
Product: Log4j
Version: 1.2
Platform: All
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Appender
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: z5h@hotmail.com
I have not used log4j, I was just looking through the source code and spotted this minor detail. So
don't take my word for it, I assume you'll double check.
Steps to reproduce:
1. Creating a
ConsoleLogger with a target of "System.err" sets the target properly.
(target="System.err";)
2. Then calling setTarget with a bogus value results in targetWarn
being called which informs the user that "System.out" will be used as a default (when really
System.err has been set successfully in the previous operation).
Fix:
#Line 80
<<
LogLog.warn("Using System.out (default).");
>> LogLog.warn("Using " + target + " (set
previously).");
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>