Clean up logging output.