Configuration: Building Log Stacks

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['syslog', 'slack'],
    ],

    'syslog' => [
        'driver' => 'syslog',
        'level' => 'debug',
    ],

    'slack' => [
        'driver' => 'slack',
        'url' => env('LOG_SLACK_WEBHOOK_URL'),
        'username' => 'Laravel Log',
        'emoji' => ':boom:',
        'level' => 'critical',
    ],
],

Log Levels

Log::debug('An informational message.');
Log::emergency('The system is down!');
  • Emergency.
  • Alert.
  • Critical.
  • Error.
  • Warning.
  • Notice.
  • Info.
  • Debug.

Related concepts

Configuration: Building Log Stacks — Structure map

Clickable & Draggable!

Configuration: Building Log Stacks — Related pages: