Use logger for log and debug messages.