forked from phoenix/litellm-mirror
docs(debugging.md): add json logs to proxy docs
This commit is contained in:
parent
52acd3955d
commit
89ad1ce9b5
1 changed files with 19 additions and 1 deletions
|
@ -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**
|
||||
|
@ -32,3 +34,19 @@ $ 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.
|
Loading…
Add table
Add a link
Reference in a new issue