mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
84 lines
4.0 KiB
JSON
84 lines
4.0 KiB
JSON
{
|
|
"manifests": {
|
|
"symfony/monolog-bundle": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Symfony\\Bundle\\MonologBundle\\MonologBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"conflict": {
|
|
"symfony/framework-bundle": "<5.3"
|
|
}
|
|
},
|
|
"files": {
|
|
"config/packages/monolog.yaml": {
|
|
"contents": [
|
|
"monolog:",
|
|
" channels: # To see all channels, run bin/console debug:autowiring logger",
|
|
" - 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\"]",
|
|
" 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:",
|
|
" main:",
|
|
" type: fingers_crossed",
|
|
" action_level: error",
|
|
" handler: nested",
|
|
" excluded_http_codes: [404, 405]",
|
|
" channels: [\"!deprecation\"]",
|
|
" buffer_size: 50 # How many messages should be saved? Prevent memory leaks",
|
|
" 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",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "feb8fd9520b5694c7d0d2ba17fd4b4d33f9dd9cf"
|
|
}
|
|
}
|
|
}
|