Skip to content

Commit

Permalink
Added deprecation logging to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Nov 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 16eb1b9 commit 0d1be18
Showing 2 changed files with 9 additions and 41 deletions.
38 changes: 9 additions & 29 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -18,33 +18,19 @@ when@dev:
monolog:
handlers:
prod-signaler:
type: fingers_crossed
action_level: ERROR
passthru_level: DEBUG # DEV setting: this means that all message of level DEBUG or higher are always logged
#passthru_level: NOTICE # PROD setting this means that all message of level NOTICE or higher are always logged
handler: main_syslog
bubble: true
main_syslog:
type: syslog
ident: stepup-selfservice
facility: user
formatter: surfnet_stepup.monolog.json_formatter
main_logfile:
type: stream
handler: logfile
level: NOTICE
path: "%kernel.logs_dir%/%kernel.environment%.log"

### Deprecation logs
deprecation_stream:
type: stream
deprecation:
type: rotating_file
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"

deprecation_filter:
type: filter
handler: deprecation_stream
max_level: info
channels: [ "php" ]
max_files: 2
channels: [ deprecation ]

when@test:
monolog:
@@ -55,18 +41,12 @@ when@test:
handler: nested
excluded_http_codes: [ 404, 405 ]
channels: [ "!event" ]
deprecation:
type: rotating_file
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
max_files: 2
channels: [ deprecation ]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

### Deprecation logs
deprecation_stream:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"

deprecation_filter:
type: filter
handler: deprecation_stream
max_level: info
channels: [ "php" ]
12 changes: 0 additions & 12 deletions config/packages/prod/monolog.yaml.docker

This file was deleted.

0 comments on commit 0d1be18

Please sign in to comment.