Add error log and phph error log

This commit is contained in:
Charles 2025-12-01 13:53:01 +01:00
parent b4a68bcc4d
commit f54f953029
1 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@ monolog:
- email_notifications - email_notifications
- admin_actions - admin_actions
- security - security
- php
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
when@dev: when@dev:
@ -47,6 +48,24 @@ when@test:
when@prod: when@prod:
monolog: monolog:
handlers: handlers:
error:
type: fingers_crossed
action_level: critical
handler: error_nested
buffer_size: 50
error_nested:
type: rotating_file
path: "%kernel.logs_dir%/error.log"
level: debug
max_files: 30
php_errors:
type: rotating_file
path: "%kernel.logs_dir%/php_error.log"
level: warning # warnings, errors, fatals…
max_files: 30
channels: [ php ]
# User Management # User Management
user_management: user_management:
type: stream type: stream