Log messages to the console for debugging