PHP code example of plumthedev / laravel-cloudwatch-logger
1. Go to this page and download the library: Download plumthedev/laravel-cloudwatch-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/ */
plumthedev / laravel-cloudwatch-logger example snippets
// config/logging.php
'channels' => [
...
'cloudwatch' => [
'driver' => 'cloudwatch',
'group_name' => 'api_v1',
'stream' => 'V1 Payments Logger',
],
],
'cloudwatch' => [
'name' => 'Laravel App',
'group_name' => 'api',
'stream' => 'component',
'credentials' => [
'key' => '...',
'secret' => '...',
],
],