If you want 400x and 500x errors, use action_level error, else use action_level critical
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
buffer_size: 200
handler: nested
grouped:
type: group
members: [streamed, buffered]
streamed:
type: stream
path: %log_dir%/moonlight_%kernel.environment%.log
level: debug
buffered:
type: buffer
buffer_size: 200
handler: swift
swift:
type: swift_mailer
from_email:
to_email:
subject: Crtical Error Alert
level: debug
No comments:
Post a Comment