The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore(proxy): delete deprecated unused litellm/proxy/_logging.py
mateo0ad9a9ba513e
diff --git a/litellm/proxy/_logging.py b/litellm/proxy/_logging.pydeleted file mode 100644index 1be4be76a84..00000000000--- a/litellm/proxy/_logging.py+++ /dev/null@@ -1,41 +0,0 @@-### DEPRECATED ###-## unused file. initially written for json logging on proxy.-import json-import logging-import os-from logging import Formatter-from typing import Final--from litellm import json_logs--# Set default log level to INFO-log_level: Final = os.getenv("LITELLM_LOG", "INFO")-numeric_level: Final[str] = getattr(logging, log_level.upper())---class JsonFormatter(Formatter):- def __init__(self):- super().__init__()-- def format(self, record):- json_record: Final = {- "message": record.getMessage(),- "level": record.levelname,- "timestamp": self.formatTime(record, self.datefmt),- }- return json.dumps(json_record)---logger: Final = logging.root-handler: Final = logging.StreamHandler()-if json_logs:- handler.setFormatter(JsonFormatter())-else:- formatter: Final = logging.Formatter(- "\033[92m%(asctime)s - %(name)s:%(levelname)s\033[0m: %(filename)s:%(lineno)s - %(message)s",- datefmt="%H:%M:%S",- )-- handler.setFormatter(formatter)-logger.handlers = [handler]-logger.setLevel(numeric_level)