Created
April 5, 2016 19:50
-
-
Save juliendufresne/2259b5f3efb960b36af76fe2cc871fb4 to your computer and use it in GitHub Desktop.
config for Monolog for Symfony2/Symfony3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monolog: | |
handlers: | |
main: | |
type: stream | |
path: "%kernel.logs_dir%/%kernel.environment%.log" | |
level: debug | |
console: | |
type: console | |
bubble: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monolog: | |
handlers: | |
main: | |
type: fingers_crossed | |
action_level: error | |
handler: main_grouped | |
channels: ["!doctrine","!security"] | |
excluded_404s: | |
- ^/$ | |
- ^/vtigercrm/ | |
main_grouped: | |
type: group | |
members: [nested, swift] | |
formatter: monolog.formatter.session_request | |
nested: | |
type: stream | |
path: "%kernel.logs_dir%/%kernel.environment%.main.log" | |
level: debug | |
formatter: monolog.formatter.session_request | |
doctrine: | |
type: fingers_crossed | |
action_level: error | |
handler: doctrine_grouped | |
channels: [doctrine] | |
doctrine_grouped: | |
type: group | |
members: [doctrine_nested, swift] | |
doctrine_nested: | |
type: stream | |
path: "%kernel.logs_dir%/%kernel.environment%.doctrine.log" | |
level: debug | |
swift: | |
type: swift_mailer | |
from_email: "%monolog.email.from%" | |
to_email: "%monolog.email.to%" | |
subject: "%monolog.email.subject%" | |
level: debug | |
login: | |
type: stream | |
path: "%kernel.logs_dir%/%kernel.environment%.login.log" | |
level: info | |
channels: [security] | |
console: | |
type: console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment