PHP code example of ansjabar / laravel-teams-logger

1. Go to this page and download the library: Download ansjabar/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/ */

    

ansjabar / laravel-teams-logger example snippets


'teams' => [
    'driver'    => 'custom',
    'via'       => \AnsJabar\LaravelTeamsLogger\LoggerChannel::class,
    'level'     => 'debug',
    'url'       => env('TEAMS_LOGGING_URL'),
    'name'      => 'The Project' // Optional: 
],

Log::channel('teams')->error('Error message');

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'teams'],
    ],
],
bash
$ php artisan vendor:publish --provider="AnsJabar\LaravelTeamsLogger\LoggerServiceProvider"