Last active
October 15, 2020 18:47
-
-
Save stijnh92/19f1009ed8ebaca93b04d35dfe187141 to your computer and use it in GitHub Desktop.
Logging configuration to send monolog logs to PHP error log
This file contains hidden or 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
# 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