PHP code example of revolution / laravel-logger-cwlogs

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

    

revolution / laravel-logger-cwlogs example snippets


    'channels' => [
        'stack' => [
            'driver'   => 'stack',
            'channels' => ['single', 'cwlogs'],
        ],
        
        'cwlogs' => [
            'driver'    => 'custom',
            'via'       => Revolution\Laravel\Logger\CloudWatchLogs\CloudWatchLogger::class,
            'region'    => env('CWLOGS_REGION'),
            'key'       => env('CWLOGS_KEY'),
            'secret'    => env('CWLOGS_SECRET'),
            'group'     => env('CWLOGS_GROUP'),
            'stream'    => env('CWLOGS_STREAM'),
            'retention' => env('CWLOGS_RETENTION', 14),
            'tags'      => [],
            'level'     => 'debug',
        ],
    ]