Coolified the logging function.