CODE: log collecting server and example client