Use correct logging function.