PHP code example of cbytedigital / laravel-teams-logger
1. Go to this page and download the library: Download cbytedigital/laravel-teams-logger 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/ */
cbytedigital / laravel-teams-logger example snippets
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'teams' /** This is important for the channel to register properly */],
'ignore_exceptions' => false,
],
...
'teams' => [
'driver' => 'custom',
'via' => \CbyteDigital\TeamsLogger\Logging\TeamsLoggingChannel::class,
'type' => \CbyteDigital\TeamsLogger\Enums\LogType::EXCEPTION,
'level' => 'error',
'url' => env('TEAMS_WEBHOOK_URL') /** This is the webhook URL generated by Teams */,
'name' => 'Project name',
],
]
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.