Files
ansible-role-chill/templates/config/prod/monolog.yaml
T
julienfastre 38a3d44897 Update monolog configuration to use dynamic log prefix and add error log handler
Revised `monolog.yaml` to replace static `log_prefix` with `chill_environment` variable and added a new `errors_log` handler. Expanded exclusion channels in default handler to include `deprecation`.
2026-01-23 08:56:47 +01:00

38 lines
1.0 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']
console:
type: console
process_psr_3_messages: false
channels: [ '!event', '!doctrine', '!console']
bubble: true