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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43587075cae119868227aa4ed0e6bd6f56428be7c867d6ec8259f95a4c65214
|
|
| MD5 |
a2dd0061d2219481dc39ff5f15b8b40c
|
|
| BLAKE2b-256 |
a15436047d1951289a1efc780b35206ef6729c3abc0b8ae5c63ceb93548edea9
|
File details
Details for the file eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz.
File metadata
- Download URL: eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ff640b92ac24e927cd5c36fb65c502e901209a700bc6b9dd3cc5a4449c7f1a8
|
|
| MD5 |
ed4fda52511073839dea0002c03a5037
|
|
| BLAKE2b-256 |
375730392b88657937b1c2ee584992fffd676de6e177f4f73254c586171ff8e2
|