Adding logging to server