Changed argument order in erlog.erl so state is always last