Cleaned up logging with a custom logging formatter.