Changed monolog prod stderror
parent
2738ae8b75
commit
f9feafa9b8
|
@ -8,17 +8,9 @@ when@dev:
|
||||||
main:
|
main:
|
||||||
type: stream
|
type: stream
|
||||||
level: info
|
level: info
|
||||||
path: php://stderr
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||||
formatter: App\Formatter\CustomLineFormatter
|
formatter: App\Formatter\CustomLineFormatter
|
||||||
channels: ["!event"]
|
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:
|
console:
|
||||||
type: console
|
type: console
|
||||||
process_psr_3_messages: false
|
process_psr_3_messages: false
|
||||||
|
@ -42,16 +34,11 @@ when@prod:
|
||||||
monolog:
|
monolog:
|
||||||
handlers:
|
handlers:
|
||||||
main:
|
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
|
|
||||||
nested:
|
|
||||||
type: stream
|
type: stream
|
||||||
path: php://stderr
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||||
level: debug
|
level: error
|
||||||
formatter: monolog.formatter.json
|
formatter: App\Formatter\CustomLineFormatter
|
||||||
|
channels: ["!event"]
|
||||||
console:
|
console:
|
||||||
type: console
|
type: console
|
||||||
process_psr_3_messages: false
|
process_psr_3_messages: false
|
||||||
|
@ -59,5 +46,6 @@ when@prod:
|
||||||
deprecation:
|
deprecation:
|
||||||
type: stream
|
type: stream
|
||||||
channels: [deprecation]
|
channels: [deprecation]
|
||||||
path: php://stderr
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||||
formatter: monolog.formatter.json
|
formatter: monolog.formatter.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue