logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Zhou <...@alibaba.com>
Subject Fw: Re: Can't specify encoding to ConsoleAppender
Date Thu, 08 Apr 2004 01:30:25 GMT
Can anyone fix this bug?

I have posted this bug report last year, and it has not fixed yet.

Forwarded by Michael Zhou <zyh@alibaba.com>
----------------------- Original Message -----------------------
 From:    Ceki Gülcü <ceki@qos.ch>
 To:      "Log4J Developers List" <log4j-dev@jakarta.apache.org>
 Date:    Thu, 09 Jan 2003 08:31:10 +0100
 Subject: Re: Can't specify encoding to ConsoleAppender
----

Michael,

Yes, absolutely. One would need to modify the activateOptions mehtod as you 
have indicated. I would appreciate if you could file a bug report 
reproducing the contents of your message.

At 15:07 09.01.2003 +0800, you wrote:
>Hi,
>
>Although ConsoleAppender extends the WriterAppender, it does not follow
>the rule of character encoding.  Given the source code of
>ConsoleAppender:
>
>     if(target.equals(SYSTEM_OUT)) {
>       setWriter(new OutputStreamWriter(System.out));
>     } else {
>       setWriter(new OutputStreamWriter(System.err));
>     }
>
>If I want to output characters other than the system default character
>set, the ConsoleAppender outputs "?".  Is it better modify the code as
>below?
>
>     if(target.equals(SYSTEM_OUT)) {
>       setWriter(createWriter(System.out));
>     } else {
>       setWriter(createWriter(System.err));
>     }
>
>--
>Michael Zhou <zyh@alibaba.com>

--
Ceki



--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


--------------------- Original Message Ends --------------------

-- 
Michael Zhou <zyh@alibaba.com>



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


Mime
View raw message