symfony / monolog-bundle

Symfony Monolog Bundle
symfony.com
MIT License
2.9k stars 232 forks source link

Suggestion: Allow 200 status code to exclude http codes #458

Open lampelk opened 1 year ago

lampelk commented 1 year ago

I have a health check which floods my logs and would like to exclude but it doesn't exclude these paths /ping and /health for 200 status code:

  monolog:
    handlers:
      main:
        type: fingers_crossed
        excluded_http_codes: [ 404, { 200: [ '^/ping', '^/health' ] } ]