now messages are logged in a separate file