gdamjan / erlang-irc-bot

A simple extendable irc bot in Erlang
http://github.com/gdamjan/erlang-irc-bot/wiki
MIT License
80 stars 25 forks source link

Use lager for debug messages #49

Closed arjan closed 10 years ago

arjan commented 10 years ago

IN/OUT traffic is logged on the debug loglevel.

arjan commented 10 years ago

Should be good to merge now, thanks

gdamjan commented 10 years ago

BTW, I'm using that strange Port/stdout dance, because I couldn't find another way to print Erlang binaries as they are, when most of the time they are UTF-8 but sometimes can be latin1.

Will lager:debug handle that?

gdamjan commented 10 years ago

Ok, this is what I did. I extracted my stupidly simple logging in a separate module c6952a9b, and now you can override it in your own project like I do here: https://github.com/gdamjan/erlang-irc-bot-skopjehacklab/commit/2bb48feb830d18ae70619aa8a890283c7d29541b