Use built-in log level messaging to log debug message if debug is enabled.