Skip to content

Instantly share code, notes, and snippets.

@bendavies
Created June 6, 2019 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendavies/75368e5e14c1af99f300d163be4225e7 to your computer and use it in GitHub Desktop.
Save bendavies/75368e5e14c1af99f300d163be4225e7 to your computer and use it in GitHub Desktop.
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: grouped
excluded_404s:
# regex: exclude all 404 errors from the logs
- ^/
grouped:
type: group
members: [file, stderr]
file:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter:
type: filter
handler: deprecation
max_level: info
channels: ["php"]
stderr:
type: stream
path: "php://stderr"
level: debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment