Clean up logging within the logger