code: def config_logging(self):
      for conf_path in self._get_logging_config_paths():
          if os.path.exists(conf_path):
              self.logging_conf["file"] = conf_path
              logging.config.fileConfig(
                  conf_path, disable_existing_loggers=False
              )
              logger.debug("Use logging config file at %s", conf_path)
              break
      else:
          log_level = self.args.log_level
          level = (
              getattr(logging, log_level.upper())
              if log_level
              else logging.INFO
          )
          logging.getLogger("__main__").setLevel(level)
          logging.getLogger("mars").setLevel(level)
          self.logging_conf["level"] = level
          if self.args.log_format:
              logging.basicConfig(format=self.args.log_format)
              self.logging_conf["format"] = self.args.log_format
  
imports: import argparse
  import asyncio
  import faulthandler
  import glob
  import importlib
  import json
  import logging.config
  import os
  import sys
  import tempfile
  from typing import List
  import psutil
  from ...utils import ensure_coverage
  from ..utils import load_service_config_file, get_third_party_modules_from_config
label_desc: Use image node_id 4 for calling the OscarCommandRunner obj's underlying member method code with example usage: obj.config_logging() without return types