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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to