Skip to content

Instantly share code, notes, and snippets.

@stijnh92
Last active October 15, 2020 18:47
Show Gist options
  • Save stijnh92/19f1009ed8ebaca93b04d35dfe187141 to your computer and use it in GitHub Desktop.
Save stijnh92/19f1009ed8ebaca93b04d35dfe187141 to your computer and use it in GitHub Desktop.
Logging configuration to send monolog logs to PHP error log
# By default, Symfony logs will not appear by default in the logs on the DeltaBlue.Cloud platform.
# When using Monolog, you can add a handler with type set to `error_log`.
# This will send all logs to the PHP error logs, and will let the platform indext it to show them.
monolog:
handlers:
main:
type: error_log
level: debug
# This is just an example for a Symfony project using Monolog.
# More info can be found under Monolog > Handlers "ErrorLogHandler"
# https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#log-to-files-and-syslog
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment