code: def configure_logging():
      # TODO: convert to simple 'logging.basicConfig' after we no longer need the filter
      if get_quiet_mode():
          CLI_LOGGING_CONFIG["loggers"]["bentoml"][
              "level"
          ] = logging.ERROR
          CLI_LOGGING_CONFIG["root"]["level"] = logging.ERROR
      elif get_debug_mode():
          CLI_LOGGING_CONFIG["handlers"]["defaulthandler"][
              "level"
          ] = logging.DEBUG
          CLI_LOGGING_CONFIG["loggers"]["bentoml"][
              "level"
          ] = logging.DEBUG
          CLI_LOGGING_CONFIG["root"]["level"] = logging.DEBUG
      else:
          CLI_LOGGING_CONFIG["loggers"]["bentoml"][
              "level"
          ] = logging.INFO
          CLI_LOGGING_CONFIG["root"]["level"] = logging.WARNING
  
      logging.config.dictConfig(CLI_LOGGING_CONFIG)
  
file_path: BentoML/grpc-client/bentoml/_internal/log.py
imports: from __future__ import annotations
  import logging
  import logging.config
  import typing
  from functools import lru_cache
  from .configuration import get_debug_mode
  from .configuration import get_quiet_mode
  from .context import component_context
  from .context import trace_context
label_desc: Use image node_id 1 for calling a global function with example usage: configure_logging() without return types