mcfedr/monolog-aws

A monolog handler to send logs to SNS or SES

3.1.0 2020-01-03 10:30 UTC

This package is auto-updated.

Last update: 2020-07-03 11:26:40 UTC


README

These handlers make it easy to send logs via amazon services

Latest Stable Version License Build Status

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