https://github.com/64robots/laravel-cloudwatch-http-logger
log incoming requests and outgoing responses to aws cloudwatch for easy debugging
https://github.com/64robots/laravel-cloudwatch-http-logger
Last synced: 10 months ago
JSON representation
log incoming requests and outgoing responses to aws cloudwatch for easy debugging
- Host: GitHub
- URL: https://github.com/64robots/laravel-cloudwatch-http-logger
- Owner: 64robots
- License: mit
- Created: 2021-07-10T13:25:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-10T13:50:33.000Z (almost 5 years ago)
- Last Synced: 2025-08-28T17:56:58.296Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
#### Installation
#### Configuration
Add `cloudwatch` to the `channels` array
```php
[
'channels' => [
'cloudwatch' => [
'driver' => 'custom',
'name' => env('CLOUDWATCH_LOG_NAME', ''),
'region' => env('CLOUDWATCH_LOG_REGION', ''),
'credentials' => [
'key' => env('CLOUDWATCH_LOG_KEY', ''),
'secret' => env('CLOUDWATCH_LOG_SECRET', '')
],
'stream_name' => env('CLOUDWATCH_LOG_STREAM_NAME', 'laravel_app'),
'retention' => env('CLOUDWATCH_LOG_RETENTION_DAYS', 14),
'group_name' => env('CLOUDWATCH_LOG_GROUP_NAME', 'laravel_app'),
'version' => env('CLOUDWATCH_LOG_VERSION', 'latest'),
'formatter' => \Monolog\Formatter\JsonFormatter::class,
'disabled' => env('DISABLE_CLOUDWATCH_LOG', false),
],
],
];
```
Add correct values to keys in your .env file. And it should work.