diff --git a/docs/my-website/docs/proxy/debugging.md b/docs/my-website/docs/proxy/debugging.md index b9f2ba8da98..571a97c0ec8 100644 --- a/docs/my-website/docs/proxy/debugging.md +++ b/docs/my-website/docs/proxy/debugging.md @@ -42,6 +42,14 @@ Set `JSON_LOGS="True"` in your env: ```bash export JSON_LOGS="True" ``` +**OR** + +Set `json_logs: true` in your yaml: + +```yaml +litellm_settings: + json_logs: true +``` Start proxy @@ -49,4 +57,35 @@ Start proxy $ litellm ``` -The proxy will now all logs in json format. \ No newline at end of file +The proxy will now all logs in json format. + +## Control Log Output + +Turn off fastapi's default 'INFO' logs + +1. Turn on 'json logs' +```yaml +litellm_settings: + json_logs: true +``` + +2. Set `LITELLM_LOG` to 'ERROR' + +Only get logs if an error occurs. + +```bash +LITELLM_LOG="ERROR" +``` + +3. Start proxy + + +```bash +$ litellm +``` + +Expected Output: + +```bash +# no info statements +``` \ No newline at end of file diff --git a/docs/my-website/docs/proxy/prod.md b/docs/my-website/docs/proxy/prod.md index 35c8c575bab..587164fe6c2 100644 --- a/docs/my-website/docs/proxy/prod.md +++ b/docs/my-website/docs/proxy/prod.md @@ -21,6 +21,7 @@ general_settings: litellm_settings: set_verbose: False # Switch off Debug Logging, ensure your logs do not have any debugging on + json_logs: true # Get debug logs in json format ``` Set slack webhook url in your env @@ -28,6 +29,11 @@ Set slack webhook url in your env export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/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" ``` +Turn off FASTAPI's default info logs +```bash +export LITELLM_LOG="ERROR" +``` + :::info Need Help or want dedicated support ? Talk to a founder [here]: (https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat)