Category: monolog

Symfony 4.1 excluded_http_codes digitalocean load balancer

I want to exclude load balancer requests from logs in monolog in symfony 4.1. This is current monolog config i have: monolog: handlers: main: type: ‘fingers_crossed’ channels: [‘!security’] action_level: info excluded_http_codes: [403, 404, {200: [‘^/ping(.+)’, ‘^/status(.+)’, ‘^/status?q=%2Fstatus’, ‘^http://cloud.digitalocean.com/status?q=%2Fstatu’]}] handler: file…

Problem monolog doctrine channel logging, symfony 4, with php

im have problem in monolog doctrine logging (in symfony 5): framework.yaml: monolog: channels: [doctrine_channel] handlers: main: channels: [“!event”, “!doctrine_channel”] doctrine: type: service channels: [doctrine_channel] id: app.logger.doctrine_handler services.yaml: app.logger.doctrine_handler: class: AppUtilDoctrineHandler arguments: – “@doctrine.orm.entity_manager” src/Utils/DoctrineHandler.php: <? namespace AppUtil; use AppEntityLogs; use…