Skip to content

Commit

Permalink
Updated monlog configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Jan 22, 2025
1 parent 08f8fc2 commit 0f285cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/packages/dev/monolog.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
->level(LogLevel::DEBUG)
->formatter(LogService::FORMATTER_NAME)
->channels()
->elements(['!event']);
->elements(['!event', '!deprecation']);

$config->handler('console')
->type('console')
Expand Down
4 changes: 3 additions & 1 deletion config/packages/prod/monolog.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
->type('stream')
->path('%kernel.logs_dir%/%kernel.environment%.log')
->level(LogLevel::INFO)
->formatter(LogService::FORMATTER_NAME);
->formatter(LogService::FORMATTER_NAME)
->channels()
->elements(['!deprecation']);

$config->handler('console')
->type('console')
Expand Down

0 comments on commit 0f285cb

Please sign in to comment.