Export log-connection

Signed-off-by: Julien Danjou <julien@danjou.info>
Encode connection into events

Signed-off-by: Julien Danjou <julien@danjou.info>