add logger to client and server