Files
julienfastre 2c57e104eb Update monolog configuration with parameterized log prefix and additional handlers
Replaced hardcoded 'test' log prefix with `{{ chill.chill_environment }}` variable. Added `errors_log` handler for error-level logging and `deprecation_log` handler to suppress deprecation warnings. Updated channel exclusions and console handler level for improved log management.
2026-11-18 13:11:04 +01:00

44 lines
1.1 KiB
YAML

# this file is managed by ansible. Do not edit it by hand
#
# NOTE: the ansible-role-chill will also configure a rule for logrotate, so,
# we do not need to configure log rotation here
#
parameters:
log_prefix: '{{ chill.chill_environment }}'
monolog:
# make a "notifier" channel available
channels: ['notifier']
handlers:
notifier_log:
type: stream
path: "%kernel.logs_dir%/notifier-%log_prefix%.log"
level: info
channels: [ 'notifier' ]
errors_log:
type: stream
path: "%kernel.logs_dir%/error-%log_prefix%.log"
level: error
privacy_log:
type: stream
path: "%kernel.logs_dir%/privacy-%log_prefix%.log"
level: info
channels: [ 'chill' ]
default_log:
type: stream
path: "%kernel.logs_dir%/default-%log_prefix%.log"
level: info
channels: [ '!event', '!doctrine', '!console', '!chill', '!deprecation']
deprecation_log:
type: 'null'
channels: [ 'deprecation' ]
console:
type: console
process_psr_3_messages: false
level: error
channels: [ '!event', '!doctrine', '!console', '!deprecation']
bubble: true