code: def main():
      
      logger = setup_logger()
  
      logger.debug('a debug message')
      logger.info('an info message')
      logger.warning('a warning message')
      logger.error('an error message')
      logger.critical('a critical message')
docs: Create and use a logger.