core: log_writer: new

Signed-off-by: Eduardo Silva <eduardo@monkey.io>