Skip to content

Commit

Permalink
Config Monolog like the other Stepup apps
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Aug 28, 2024
1 parent 27c96bc commit b6a7d19
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
monolog:
handlers:
main:
prod-signaler:
type: fingers_crossed
action_level: ERROR
passthru_level: NOTICE # this means that all message of level NOTICE or higher are always logged
handler: main_syslog
bubble: false # if we handle it, nothing else should
channels: [ "!deprecation" ]
main_syslog:
type: stream
level: INFO # Logs all messages at info level and higher severities
handler: syslog
channels: [ '!event', '!doctrine' ]
path: "php://stderr"
syslog:
path: "php://stderr"
type: syslog
ident: userlifecycle_stats
formatter: OpenConext\UserLifecycle\Infrastructure\UserLifecycleBundle\Monolog\Formatter\JsonFormatter
formatter: monolog.formatter.json
channels: [ "!deprecation" ]

when@test: &non-prod
when@dev: &override
monolog:
handlers:
main:
level: DEBUG

when@dev: *non-prod
main_syslog:
type: stream
path: php://stderr
level: error
channels: ["!event", "!doctrine", "!deprecation", "!console"]
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!deprecation", "!console"]
when@test: *override
when@smoketest: *override

0 comments on commit b6a7d19

Please sign in to comment.