Dump erlang variables to log