irclog: add json-format log msg output

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>