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
add message_logging on Custom Logger
Ishaan Jaff715387c3c0f7
diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.pyindex ce0caf32bcc..e5d3dfd56c5 100644--- a/litellm/integrations/custom_logger.py+++ b/litellm/integrations/custom_logger.py@@ -15,7 +15,8 @@ from litellm.types.utils import AdapterCompletionStreamWrapper, ModelResponseclass CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class# Class variables or attributes- def __init__(self) -> None:+ def __init__(self, message_logging: bool = True) -> None:+ self.message_logging = message_loggingpassdef log_pre_api_call(self, model, messages, kwargs):