log events to server