Improved logger based on Python's logging module
Project description
A wrapper for the native logging module of Python.
from rainbow import RainbowLogger
# __name__ will get the current context
# but you can pass any text you want, for identification
logger = RainbowLogger(__name__)
logger.info('my info')
logger.warning('my warn')
logger.error('my error')
logger.debug('my debug')
Which should output this:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rainbow-bridge-logger-0.3.tar.gz
(11.7 kB
view hashes)
Close
Hashes for rainbow-bridge-logger-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f65d74ea0bcbb93a7e75dd986646729b73579038b58247d5f0acba79a6bedcce |
|
MD5 | 3c63d1a5c7ee0b320af7cf8e7c8b4fb8 |
|
BLAKE2b-256 | 886bb56a022cf2f6a9e0b89617804ab0bf4ce81769ea5bd61518753283e501e8 |