Debugging
2 levels of debugging supported.
- debug (prints info logs)
- detailed debug (prints debug logs)
The proxy also supports json logs. See here
debug
via cli
$ litellm --debug
via env
os.environ["LITELLM_LOG"] = "INFO"
detailed debug
via cli
$ litellm --detailed_debug
via env
os.environ["LITELLM_LOG"] = "DEBUG"
JSON LOGS
Set JSON_LOGS="True"
in your env:
export JSON_LOGS="True"
Start proxy
$ litellm
The proxy will now all logs in json format.