Abstract logger for Erlang