Communication with server, Logging with levels