Added logging mechanism to server