text: import os
  
  from pydantic import BaseModel
  
  
  class LogConfig(BaseModel):
      """Logging configuration to be set for the server"""
  
      LOGGER_NAME: str = "fuse-provider-upload"
      LOG_FORMAT: str = "%(levelprefix)s | %(asctime)s | %(funcName)s | %(message)s"
      LOG_LEVEL: str = os.getenv("LOG_LEVEL", "DEBUG")
  
      # Logging config
      version = 1
      disable_existing_loggers = False
      formatters = {
          "default": {
              "()": "uvicorn.logging.DefaultFormatter",
              "fmt": LOG_FORMAT,
              "datefmt": "%Y-%m-%d %H:%M:%S",
          },
      }
      handlers = {
          "default": {
              "formatter": "default",
              "class": "logging.StreamHandler",
              "stream": "ext://sys.stderr",
          },
      }
      loggers = {
          "fuse-provider-upload": {"handlers": ["default"], "level": LOG_LEVEL},
      }
  