mcfedr / monolog-aws
A monolog handler to send logs to SNS or SES
Installs: 26 581
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 2
Open Issues: 2
Requires
- php: >=7.2
- ext-mbstring: *
- aws/aws-sdk-php: ^3
- monolog/monolog: ^1.13 || ^2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-11-19 22:57:46 UTC
README
These handlers make it easy to send logs via amazon services
Usage
Amazon SES
A mail handler that sends its messages via SES.
It replicates the interface of the other mail handlers. I recommend using it with a BufferHandler
.
Amazon SNS
A logger handler mosts messages using the SNS - publish/subscribe service. Simply specify the topic ans and have your log sent to you via email, sms or however you need. Note that messages are trimmed to 8KB, in case you are trying to log really long stack traces or something. If you use a region other than US_EAST you will need to do setRegion on the Handler.
Tests
To run the tests
./vendor/.bin/phpunit