Website/config/packages/monolog.yaml
Snoweuph ee8012c4e0
All checks were successful
Quality Check / QS Backend (push) Successful in 16s
Quality Check / QS Frontend (push) Successful in 34s
NOTICKET: Refactor Project Layout
2024-07-30 05:59:42 +02:00

53 lines
No EOL
1.4 KiB
YAML

monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
when@dev:
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [ "!event" ]
console:
type: console
process_psr_3_messages: false
channels: [ "!event", "!doctrine", "!console" ]
when@test:
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
when@prod:
monolog:
handlers:
main:
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: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
formatter: monolog.formatter.json
console:
type: console
process_psr_3_messages: false
channels: [ "!event", "!doctrine" ]
deprecation:
type: stream
channels: [ deprecation ]
path: "%kernel.logs_dir%/%kernel.environment%.log"