Use Logger class for debugging messages.