Skip to main content

Scribe log writer and logging handler.

Project description

Build Status Code Climate Coverage Status License Downloads

Scribe logger

This package contains a low level interface for writing to Scribe, as well as a higher level log handler which plays nicely with Python’s logging facilities.

Supports Python 2.7


pip install scribe-logger

Testing locally

git clone
cd python-scribe-logger
pip install -U -r requirements.txt

Logger usage

from scribe_logger.logger import ScribeLogHandler
import logging

my_logger = logging.getLogger('MyLogger')

scribe = ScribeLogHandler('localhost', 1464, category='test_category')
my_logger.addHandler(scribe)'This is a test message')

Exceptions are suppressed by default. Use silent=False to raise them:

scribe = ScribeLogHandler('localhost', 1464, category='test_category', silent=False)

Writer usage

from scribe_logger.writer import ScribeWriter

writer = ScribeWriter('localhost', 1464, 'test_category')
    writer.write(['test_message_1', 'test_message_2', 'test_message_3'])
except ScribeLoggerError:

Exceptions are raised by default. Use silent=True to suppress them:

writer = ScribeWriter('localhost', 1464, 'test_category', silent=True)
writer.write(['test_message_1', 'test_message_2', 'test_message_3'])


@adilansari @mwhooker @lenn0x

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scribe_logger, version 1.3
Filename, size File type Python version Upload date Hashes
Filename, size scribe_logger-1.3.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page