Use the logging module to control messages.