code: def debug_flag():
      
      logging.basicConfig(format=consts.LOGGING_FORMAT)
  
      parser = argparse.ArgumentParser(description=debug_flag.__doc__)
      add_debug(parser)
      args, _extra_args = parser.parse_known_args()
  
      package, *_ = __package__.split('.')
      logging.getLogger(package).setLevel(args.debug)
docs: Set logging level for entry points.