code: def _configure_logger():
      
      if not app.debug:
          _configure_logger_for_production(logging.getLogger())
      elif not app.testing:
          _configure_logger_for_debugging(logging.getLogger())
docs: Configure the logging module.