mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
If json_logs: true, the proxy server will outputs access logs in JSON
This commit is contained in:
parent
14bcc9a6c9
commit
29a268f1d8
4 changed files with 169 additions and 3 deletions
|
@ -132,8 +132,8 @@ class ProxyInitializationHelpers:
|
|||
print(f"Using log_config: {log_config}") # noqa
|
||||
uvicorn_args["log_config"] = log_config
|
||||
elif litellm.json_logs:
|
||||
print("Using json logs. Setting log_config to None.") # noqa
|
||||
uvicorn_args["log_config"] = None
|
||||
from litellm.proxy.json_logging import uvicorn_json_log_config
|
||||
uvicorn_args["log_config"] = uvicorn_json_log_config()
|
||||
return uvicorn_args
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue