Closed jeromeroussin closed 1 week ago
JSON logging allows for easier machine-reading of logs, and automated alerting, but Litellm currently strips away everything but the message during the JSON formatter:
class JsonFormatter(Formatter): def __init__(self): super(JsonFormatter, self).__init__() def format(self, record): json_record = {} json_record["message"] = record.getMessage() return json.dumps(json_record)
Make JSON logging more useful for automated monitoring of litellm proxy
https://www.linkedin.com/in/jeromeroussin/
The Feature
JSON logging allows for easier machine-reading of logs, and automated alerting, but Litellm currently strips away everything but the message during the JSON formatter:
Motivation, pitch
Make JSON logging more useful for automated monitoring of litellm proxy
Twitter / LinkedIn details
https://www.linkedin.com/in/jeromeroussin/