code: def initialise_logging(level: str, target: str, short_format: bool):
      
      try:
          log_level = getattr(logging, level)
      except AttributeError:
          raise SystemExit(
              "invalid log level %r, expected any of 'DEBUG', 'INFO', 'WARNING', 'ERROR' or 'CRITICAL'" % level
          )
      handler = create_handler(target=target)
      logging.basicConfig(
          level=log_level,
          format='%(asctime)-15s (%(process)d) %(message)s' if not short_format else '%(message)s',
          datefmt='%Y-%m-%d %H:%M:%S',
          handlers=[handler]
      )
docs: Initialise basic logging facilities