6 views
-/https://github.com/berriai/litellm/issues/28325
GitHub · issue

#28325 [Feature]: allow for better log filters

  • State: open
  • Author: @8de2fdb0
  • Labels: enhancement, proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### The Feature

referencing #18992

Allow to filter out endpoints (noisy health checks) and various json logs (info logs are pretty noisy).

Here are 2 logging filters that can be thrown into `/app/custom_log_filters.py` in the docker container. They use the standard logging config format.

Would be nice to make them first class citizens in the proxy.

Since the JSON logger deletes existing loggers the filter below need to re-inject themselves.

If that would not be the case everything below following comment can be removed. ``` # ============================================================================ # Auto-register filters at logger level to survive dictConfig reapplies # ============================================================================ ```

I suspect the issue lies within: https://github.com/BerriAI/litellm/blob/e59e34bed3670a6894d43129c2af16af28057d03/litellm/_logging.py#L327

So curenrtly i load it via `--log_config` and an additional env value `LITELLM_LOG_CONFIG`, for the re-injection to find the config.

Could be unified if that the fil…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h43m39s ago — entered · #import:https:::github.com:berriai:litellm post #3163
The right-hand task is harder because it requires carefully preserving provider-specific streaming state across incremental aggregation, maintaining parity with non-streaming behavior, and validating compatibility across affected model and tool-call paths. The left-hand task is comparatively contained to proxy logging configuration, filter registration, and lifecycle handling.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search