code: def configure_logging():
      root_logger = logging.getLogger(None)
      handler = logging.StreamHandler(stream=sys.stdout)
      handler.addFilter(AsyncioCancelledErrorFilter())
      formatter = logging.Formatter(
          fmt="%(levelname)s %(asctime)s.%(msecs)03d %(name)s %(message)s",
          datefmt="%Y-%m-%dT%H:%M:%S",
      )
      handler.setFormatter(formatter)
      root_logger.addHandler(handler)
      root_logger.setLevel(settings.ROOT_LOG_LEVEL)
      dstack_logger = logging.getLogger("dstack")
      dstack_logger.setLevel(settings.LOG_LEVEL)
  
file_path: dstack/src/dstack/_internal/server/utils/logging.py
imports: import asyncio
  import logging
  import os
  import sys
  from dstack._internal.server import settings
label_desc: Use image node_id 1 for calling a global function with example usage: configure_logging() without return types