repo_description: One API for all LLMs either Private or Public (Anthropic, Llama V2, GPT 3.5/4, Vertex, GPT4ALL, HuggingFace ...) 🌈🐂  Replace OpenAI GPT with any LLMs in your app with one line.
repo_topics: api gpt gpt4all huggingface inference llama llm openai private public
code: import logging
  
  
  def get_logger(logger_name: str, log_level: int | str = logging.INFO) -> logging.Logger:
      logger = logging.getLogger(logger_name)
      logger.setLevel(log_level)
      logger.propagate = False  # Prevent log propagation to avoid double logging
  
      formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s")
  
      console_handler = logging.StreamHandler()
      console_handler.setFormatter(formatter)
  
      if not logger.handlers:
          logger.addHandler(console_handler)
  
      return logger
  