autopush.logging

Custom Logging Setup

class autopush.logging.PushLogger(logger_name, log_level='debug', log_format='json', log_output='stdout', sentry_dsn=None, firehose_delivery_stream=None)[source]

Twisted LogObserver implementation

Supports firehose delivery, Raven exception reporting, and json/test console debugging output.

__init__(logger_name, log_level='debug', log_format='json', log_output='stdout', sentry_dsn=None, firehose_delivery_stream=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__call__(...) <==> x(...)[source]
class autopush.logging.FirehoseProcessor(stream_name, maxsize=0)[source]

Batches log events for sending to AWS FireHose

__init__(stream_name, maxsize=0)[source]

x.__init__(…) initializes x; see help(type(x)) for signature