131 lines
4.0 KiB
YAML
131 lines
4.0 KiB
YAML
monolog:
|
|
channels:
|
|
- user_management
|
|
- authentication
|
|
- organization_management
|
|
- access_control
|
|
- email_notifications
|
|
- admin_actions
|
|
- security
|
|
- php
|
|
- 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"]
|
|
# 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"]
|
|
|
|
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:
|
|
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:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/user_management.log"
|
|
level: info
|
|
channels: [user_management]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Authentication
|
|
authentication:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/authentication.log"
|
|
level: info
|
|
channels: [authentication]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Organization Management
|
|
organization_management:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/organization_management.log"
|
|
level: info
|
|
channels: [organization_management]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Access Control
|
|
access_control:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/access_control.log"
|
|
level: info
|
|
channels: [access_control]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Email Notifications
|
|
email_notifications:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/email_notifications.log"
|
|
level: info
|
|
channels: [email_notifications]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Admin Actions
|
|
admin_actions:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/admin_actions.log"
|
|
level: info
|
|
channels: [admin_actions]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|
|
|
|
# Security
|
|
security:
|
|
type: stream
|
|
path: "%kernel.logs_dir%/security.log"
|
|
level: warning
|
|
channels: [security]
|
|
formatter: monolog.formatter.json
|
|
max_files: 30
|