Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Damn simple logging wrapper compatible with eventlet.

Project description

About

Simple wrapper around logging module compatible with eventlet.

API

create_logger function takes logger name and optional format and level arguments and return (log, log_exc, logger) tuple.

log is just logger.info – prints given message with INFO level.

log_exc calls logger.exception and prints given message along with stacktrace.

logger is instance of logging.Logger class.

Usage

from eventlet_log import create_logger
(log, log_exc, _) = create_logger('younameit')

log('Hello world')

try:
    1/0
except ZeroDivisionError:
    log_exc('Smth happens')

Install

~/yourvirtualenv/python setup.py install

pip install eventlet_log

License

The MIT License, in LICENSE file.

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 eventlet_log, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz (3.2 kB) File type Dumb Binary Python version any Upload date Hashes View hashes
Filename, size eventlet_log-0.0.4.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page