#28325 [Feature]: allow for better log filters
### 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…