PHP code example of devman1917 / laravel-mattermost-logging-driver
1. Go to this page and download the library: Download devman1917/laravel-mattermost-logging-driver library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devman1917 / laravel-mattermost-logging-driver example snippets
'mattermost' => [
'driver' => 'custom',
'via' => Dbt\Mattermost\Logger\Factory::class,
'webhook' => env('MATTERMOST_WEBHOOK'),
],
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'mattermost'],
],
resolve(LogManager::class)
->channel('mattermost') // or ->stack(['single', 'bugsnag', 'mattermost'])
->info('Everyone loves a good log message.');