code: def init_logging(log_level):
      
      log_level_filter = LogLevelFilterPredicate(
          LogLevel.levelWithName(log_level))
      log_level_filter.setLogLevelForNamespace(
          'twisted.web.client._HTTP11ClientFactory', LogLevel.warn)
      log_observer = FilteringLogObserver(
          textFileLogObserver(sys.stdout), [log_level_filter])
      globalLogPublisher.addObserver(log_observer)
docs: Initialise the logging by adding an observer to the global log publisher.
  
      :param str log_level: The minimum log level to log messages for.