Skip to main content

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.

Source Distribution

eventlet_log-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file eventlet_log-0.0.4.tar.gz.

File metadata

  • Download URL: eventlet_log-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventlet_log-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b43587075cae119868227aa4ed0e6bd6f56428be7c867d6ec8259f95a4c65214
MD5 a2dd0061d2219481dc39ff5f15b8b40c
BLAKE2b-256 a15436047d1951289a1efc780b35206ef6729c3abc0b8ae5c63ceb93548edea9

See more details on using hashes here.

File details

Details for the file eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz.

File metadata

File hashes

Hashes for eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 8ff640b92ac24e927cd5c36fb65c502e901209a700bc6b9dd3cc5a4449c7f1a8
MD5 ed4fda52511073839dea0002c03a5037
BLAKE2b-256 375730392b88657937b1c2ee584992fffd676de6e177f4f73254c586171ff8e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page