2017 © Pedro Peláez
 

library composer_test

Kinesis handler for Monolog

image

gyy/composer_test

Kinesis handler for Monolog

  • Wednesday, January 31, 2018
  • by 183387594
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kinesis handler for Monolog

Monolog handler to send messages to AWS Kinesis streams, (*1)

Example Usage

<?php

$kinesis = new \Aws\Kinesis\KinesisClient(['region' => 'us-west-2', 'version' => 'latest']);

$kinesisHandler = new \CascadeEnergy\Monolog\Handler\KinesisHandler($kinesis, 'kinesis-stream-name');

$logger = new \Monolog\Logger('log-channel');
$logger->pushHandler($kinesisHandler);

$logger->notice('Off we go to Kinesis.');

Import Usage Notes

This handler is designed for streaming near-real-time monitoring information to systems like DevOps dashboards; it is not intended to be a mission critical log aggregator. Because of this, the exception handling strategy is currently to allow logs to simply be dropped., (*2)

If the target Kinesis stream cannot be reached or if its throughput is being exceeded this handler makes no attempt to re-try failed log transmissions., (*3)

The Versions

31/01 2018

dev-master

9999999-dev

Kinesis handler for Monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charles Berube