Category: monolog

Symfony: monolog not installed without error

I have a brand new symfony project with basic bundles, to create an API. For logging, I need the Symfony monolog bundle. This is my composer.json: { “type”: “project”, “license”: “proprietary”, “require”: { “php”: “^7.2.5”, “ext-ctype”: “*”, “ext-iconv”: “*”, “ext-pdo”:…

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…