Improved logging in servers