Always set the logging function