[erlang-questions] Logger to log terms, that can contain unicode chars

27 views
Skip to first unread message

Zhemzhitsky Sergey

unread,
Aug 27, 2012, 11:12:30 AM8/27/12
to erlang-q...@erlang.org

Hi erlangers,

 

Could you suggest any logger that can accept erlang terms which contains strings with Unicode characters?

Or could you suggest how the lager should be configured properly.

 

I was not able to get correct string presentation with lager doing like so

lager:info(“Info: ~p”, [{tuple, “string with umlauts ǜ”}])

 

 

Best Regards,

Sergey

_______________________________________________________

 

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia.

If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp

 

Andrew Thompson

unread,
Aug 27, 2012, 11:40:59 AM8/27/12
to erlang-q...@erlang.org
On Mon, Aug 27, 2012 at 03:12:30PM +0000, Zhemzhitsky Sergey wrote:
> Hi erlangers,
>
> Could you suggest any logger that can accept erlang terms which contains strings with Unicode characters?
> Or could you suggest how the lager should be configured properly.
>
> I was not able to get correct string presentation with lager doing like so
> lager:info(“Info: ~p”, [{tuple, “string with umlauts u”}])

Looks like a bug to do with printing unicode with the ~p formatter,
things seem to work ok if you use ~s or ~ts.

Could you file a bug so I can look into it more when I have time?

Andrew
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Zhemzhitsky Sergey

unread,
Aug 28, 2012, 2:46:54 AM8/28/12
to Andrew Thompson, erlang-q...@erlang.org
Hi Andrew,

I have raised an issue - https://github.com/basho/lager/issues/75

Best Regards,
Sergey
_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia.
If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp

Reply all
Reply to author
Forward
0 new messages