jamesgsilva / monolog-kinesis-handler
A monolog handler for AWS Kinesis streams
Installs: 4 950
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- monolog/monolog: ^2.2
Requires (Dev)
- aws/aws-sdk-php: ^3.173
- friendsofphp/php-cs-fixer: ^2.18
- phpstan/phpstan: ^0.12.72
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
Suggests
- aws/aws-sdk-php: Allow sending log messages to AWS Kinesis
README
A monolog handler for AWS Kinesis streams.
Installation
Require this library through composer:
$ composer require jamesgsilva/monolog-kinesis-handler
Usage
You can find usage examples here using kinesalite an implementation of Amazon's Kinesis built on LevelDB.
<?php $kinesis = new \Aws\Kinesis\KinesisClient(['region' => 'us-west-2', 'version' => 'latest']); $kinesisHandler = new \JamesGSilva\MonologKinesisHandler\KinesisHandler($kinesis, 'stream-name'); $logger = new \Monolog\Logger('channel'); $logger->pushHandler($kinesisHandler); $logger->info('Hello Kinesis');
Contributing
Feel free to contribute by opening a pull request. Bug fixes or feature suggestions are always welcome. See CONTRIBUTING.md for information.