Skip to content

Instantly share code, notes, and snippets.

@stijnh92
Last active May 16, 2018 10:56
Show Gist options
  • Save stijnh92/eccee9009d10db5a0bc99db07ac8720d to your computer and use it in GitHub Desktop.
Save stijnh92/eccee9009d10db5a0bc99db07ac8720d to your computer and use it in GitHub Desktop.
Laravel logging configuration to send logs to PHP error log. (>= Laravel 5.6)
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'errorlog'],
],
....
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment