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.
Metadata
Release files for eventlet_log 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eventlet_log-0.0.4.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz | Details |
Total release size: 6.3 kB
Release files / eventlet_log-0.0.4.tar.gz
| Download URL | eventlet_log-0.0.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b43587075cae119868227aa4ed0e6bd6f56428be7c867d6ec8259f95a4c65214
|
|
BLAKE2b-256 checksum How to use checksums |
a15436047d1951289a1efc780b35206ef6729c3abc0b8ae5c63ceb93548edea9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz
| Download URL | eventlet_log-0.0.4.macosx-10.9-x86_64.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ff640b92ac24e927cd5c36fb65c502e901209a700bc6b9dd3cc5a4449c7f1a8
|
|
BLAKE2b-256 checksum How to use checksums |
375730392b88657937b1c2ee584992fffd676de6e177f4f73254c586171ff8e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |