docs(debugging.md): add json logs to proxy docs

This commit is contained in:
Krrish Dholakia 2024-05-20 09:29:30 -07:00
parent 52acd3955d
commit 89ad1ce9b5

View file

@ -5,6 +5,8 @@
- debug (prints info logs)
- detailed debug (prints debug logs)
The proxy also supports json logs. [See here](#json-logs)
## `debug`
**via cli**
@ -31,4 +33,20 @@ $ litellm --detailed_debug
```python
os.environ["LITELLM_LOG"] = "DEBUG"
```
```
## JSON LOGS
Set `JSON_LOGS="True"` in your env:
```bash
export JSON_LOGS="True"
```
Start proxy
```bash
$ litellm
```
The proxy will now all logs in json format.