Add logging to server