CdsConnector/config/packages/monolog.yaml

65 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2022-06-22 13:05:45 +02:00
monolog:
2024-03-20 17:32:52 +01:00
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
2022-06-22 13:05:45 +02:00
when@dev:
2024-03-20 17:32:52 +01:00
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [ "!event" ]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console:
type: console
process_psr_3_messages: false
channels: [ "!event", "!doctrine", "!console" ]
2022-06-22 13:05:45 +02:00
when@test:
2024-03-20 17:32:52 +01:00
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [ 404, 405 ]
channels: [ "!event" ]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
2022-06-22 13:05:45 +02:00
when@prod:
2024-03-20 17:32:52 +01:00
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [ "!event" ]
#type: fingers_crossed
action_level: error
handler: nested
#excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
level: debug
formatter: monolog.formatter.json
console:
type: console
process_psr_3_messages: false
channels: [ "!event", "!doctrine" ]
deprecation:
type: stream
channels: [ deprecation ]
path: php://stderr