2024-10-03 14:27:53 +02:00
|
|
|
monolog:
|
|
|
|
channels:
|
2024-10-04 09:48:36 +02:00
|
|
|
- user
|
2024-10-03 14:27:53 +02:00
|
|
|
- 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
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: ["!event", "!user"]
|
2024-10-03 14:27:53 +02:00
|
|
|
# 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
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: ["!event", "!doctrine", "!console", "!user"]
|
2024-10-03 14:27:53 +02:00
|
|
|
user:
|
|
|
|
type: stream
|
|
|
|
level: debug
|
|
|
|
path: "%kernel.logs_dir%/user.log"
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: [user]
|
2024-10-03 14:27:53 +02:00
|
|
|
|
|
|
|
when@test:
|
|
|
|
monolog:
|
|
|
|
handlers:
|
|
|
|
main:
|
|
|
|
type: fingers_crossed
|
|
|
|
action_level: error
|
|
|
|
handler: nested
|
|
|
|
excluded_http_codes: [404, 405]
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: ["!event", "!user"]
|
2024-10-03 14:27:53 +02:00
|
|
|
nested:
|
|
|
|
type: stream
|
|
|
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
|
|
|
level: debug
|
|
|
|
user:
|
|
|
|
type: stream
|
|
|
|
level: debug
|
|
|
|
path: "%kernel.logs_dir%/user.log"
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: [user]
|
2024-10-03 14:27:53 +02:00
|
|
|
|
|
|
|
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
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: ["!user"]
|
2024-10-03 14:27:53 +02:00
|
|
|
nested:
|
|
|
|
type: stream
|
|
|
|
path: php://stderr
|
|
|
|
level: debug
|
|
|
|
formatter: monolog.formatter.json
|
|
|
|
console:
|
|
|
|
type: console
|
|
|
|
process_psr_3_messages: false
|
|
|
|
channels: ["!event", "!doctrine"]
|
|
|
|
deprecation:
|
|
|
|
type: stream
|
|
|
|
channels: [deprecation]
|
|
|
|
path: php://stderr
|
|
|
|
formatter: monolog.formatter.json
|
|
|
|
user:
|
|
|
|
type: stream
|
|
|
|
level: debug
|
|
|
|
path: "%kernel.logs_dir%/user.log"
|
2024-10-04 09:48:36 +02:00
|
|
|
channels: [user]
|