PHP code example of jack-cc-kasa / laravel-mattermost-logging-driver
1. Go to this page and download the library: Download jack-cc-kasa/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/ */
jack-cc-kasa / laravel-mattermost-logging-driver example snippets
'mattermost' => [
'driver' => 'custom',
'via' => colbygarland\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.');