Colorable, scalable logger for CLI
Project description
inSPy-Logger
Installation
Prerequisites:
Platform/Env:
- Python: ^3.6.3
- PIP: (If you want to install via PIP, that is)
inSPy-Logger Runtime Dependencies:
I am providing this list of dependencies for transparency and for instances where one would not be able to install inSPy-Logger via PyPi's package manager. It is highly recommended you use python3 -m pip install inspy_logger==<ver>
to install inSPy-Logger 2.0+
- colorlog (^4.2.1)
- setuptools-autover = (^1.0.2)
- luddite = (^1.0.1)
- packaging = (^20.4)
Installation via Pip on Python 3.6.3+ (recommended method):
$> python3 -m pip install inspy_logger==<version>
Test out InspyLogger:
import inspy_logger
# Set up a log device object. The first parameter is the root loggers name, and the second is the debug level
log_device = inspy_logger.InspyLogger('LogName', 'debug')
# Start a running log from that device
log = log_device.start()
# Output our own logger lines:
log.debug('This is a debug log entry')
log.info('This is an info log entry')
log.warning('This is a warning log entry!')
log.error('This is an error log entry!')
log.exception('This is an exception log entry!')
If you run the code above you'll get output similar to this:
v2.0+ repository for inSPy-Logger
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
inspy_logger-3.0.1.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for inspy_logger-3.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f65c94335e206de32babba80d17976f1d1138449112427c1d8e637e951b82dc |
|
MD5 | af1dd7153a0e8d96e6493532fbe20abb |
|
BLAKE2b-256 | 4c1ba3e829753b7d4f62e947cd01727c8fcd071e6c288d1296e4430c6e22b6d5 |