[ 
https://issues.apache.org/jira/browse/LOGCXX-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420040#comment-15420040
 ] 

Giora Guttsait commented on LOGCXX-483:
---------------------------------------

Hi, I just wanted to inform you of our solution.

Using some guidance from the sources, we created a new appender, that derives 
from WriterAppender, Which, like ConsoleAppender, injects a custom writer into 
the WriterAppender (with SetWriter). For the writer, we wrote a simple writer 
that does a `std::cout << msg` on write and `std::cout << std::flush` on the 
flush method.
We also noticed that the Logger has a call to a encode/decode related macro, so 
we created out own Logger, which derives from logger, and simplified it's 
forceLog method, excluding the decode/encode macro.

That ended up just formatting the message into a simple cout, which solved our 
problem.

> Not able to see hebrew values when logging in log4cxx
> -----------------------------------------------------
>
>                 Key: LOGCXX-483
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-483
>             Project: Log4cxx
>          Issue Type: Bug
>         Environment: Linux Debian 8 32bit
>            Reporter: Giora Guttsait
>
> When logging messages with a console appender (whose output is directed to a 
> file), hebrew text is shown as weird symbols.
> It really affects out ability to debug and analyze the program output at 
> specific points, so a quick fix(if possible) would be great



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to