Category : monolog

I am using monolog & Symfony for logging errors and event. What I have:Currently I have the following: all errors are handled by Sentry service and all my events higher than debug level in mychannel are written in file: monolog: handlers: main: type: fingers_crossed action_level: error handler: sentry file: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug ..

Read more

I have a problem with my Monolog configuration. Monolog sends me an email each time an error is reported by the application (warning, error, critical). I get all the necessary information in my email: subject, error description, etc… it works, it’s perfect. But sometimes I receive emails from Monolog without the subject. These emails are ..

Read more

The error I’m getting is like the following: Some information that you should know: I’m using Symfony 5 I’m able to connect to mongo db using MongoDB Compass and in terminal using mongo command What packages I have installed are the following: “mongodb/mongodb”: “^1.6” “monolog/monolog”: “^2.0” “symfony/monolog-bundle”: “^3.5” My configuration file monolog.yaml (config/packages/dev/monolog.yaml) is like ..

Read more

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”: “*”, “elasticsearch/elasticsearch”: “7.5”, “lexik/jwt-authentication-bundle”: “^2.6”, “sensio/framework-extra-bundle”: “^5.5”, “symfony/monolog-bundle”: “^3.5”, “symfony/console”: “5.0.*”, “symfony/dotenv”: “5.0.*”, “symfony/flex”: “^1.3.1”, ..

Read more