kinesisloghandler

Python logging handler for sending logs to AWS Kinesis


License
BSD-3-Clause
Install
pip install kinesisloghandler==0.0.3

Documentation

Kinesis Log Handler

Build Status codecov

Python logging handler for sending logs to AWS Kinesis

Requirements

  • Python 3.5+
  • boto3

Installation

Install and update using pip

pip install -U kinesis-log-handler

A Simple Example

import logging
from kinesis_log_handler.firehose import FirehoseHandler

logger = logging.getLogger('neil')
fh = FirehoseHandler(
    delivery_stream_name='your_kinesis_stream_name',
    region_name='ap-northeast-1')
logger.addHandler(fh)

logger.warning('Warning!')

TODO

  • Emit asynchronously