From 89ad1ce9b5ff8837a86e812f72c9468fade4fa15 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 20 May 2024 09:29:30 -0700 Subject: [PATCH] docs(debugging.md): add json logs to proxy docs --- docs/my-website/docs/proxy/debugging.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/my-website/docs/proxy/debugging.md b/docs/my-website/docs/proxy/debugging.md index c5653d90f..b9f2ba8da 100644 --- a/docs/my-website/docs/proxy/debugging.md +++ b/docs/my-website/docs/proxy/debugging.md @@ -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" -``` \ No newline at end of file +``` + +## 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. \ No newline at end of file