Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created April 23, 2019 14:13
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 coreymcmahon/82e85a68a224e55edd2da7ef2ea6ee43 to your computer and use it in GitHub Desktop.
Save coreymcmahon/82e85a68a224e55edd2da7ef2ea6ee43 to your computer and use it in GitHub Desktop.
Example logging configuration for Laravel, going to stdout.
<?php
return [
'default' => env('LOG_CHANNEL', 'stack'),
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
],
'single' => [
'driver' => 'single',
'path' => 'php://stdout',
'tap' => [App\Logging\UseJsonFormatter::class],
'level' => 'debug',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment