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 Michael Zhou <zy...@alibaba.com> on 2004/04/08 03:30:25 UTC
Fw: Re: Can't specify encoding to ConsoleAppender
Can anyone fix this bug?
I have posted this bug report last year, and it has not fixed yet.
Forwarded by Michael Zhou <zy...@alibaba.com>
----------------------- Original Message -----------------------
From: Ceki G�lc� <ce...@qos.ch>
To: "Log4J Developers List" <lo...@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 <zy...@alibaba.com>
--
Ceki
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--------------------- Original Message Ends --------------------
--
Michael Zhou <zy...@alibaba.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: Fw: Re: Can't specify encoding to ConsoleAppender
Posted by Ceki Gulcu <ce...@apache.org>.
Michael,
Thank you for the reminder. Your fix has now been included in CVS.
At 09:30 AM 4/8/2004 +0800, you wrote:
>Can anyone fix this bug?
>
>I have posted this bug report last year, and it has not fixed yet.
>
>Forwarded by Michael Zhou <zy...@alibaba.com>
>----------------------- Original Message -----------------------
> From: Ceki Gülcü <ce...@qos.ch>
> To: "Log4J Developers List" <lo...@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 <zy...@alibaba.com>
>
>--
>Ceki
>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>--------------------- Original Message Ends --------------------
>
>--
>Michael Zhou <zy...@alibaba.com>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-dev-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org