Practical: A callback-based logging function that prints a message to the console.