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
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 inspy_logger-3.2.3.tar.gz.
File metadata
- Download URL: inspy_logger-3.2.3.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.7 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3a86af9660740da3e5c39cac3a09e6db2659af38cf68b4bc8d9a7cea448d056
|
|
| MD5 |
e021b9db5bd4fb10f245bc19463ae4f4
|
|
| BLAKE2b-256 |
9e39d137070f96a9696340cf8e286f7ba5f08c4faa0ac52ffbbaccc16d729555
|
File details
Details for the file inspy_logger-3.2.3-py3-none-any.whl.
File metadata
- Download URL: inspy_logger-3.2.3-py3-none-any.whl
- Upload date:
- Size: 67.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.7 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a526899378d068a50d0f7475ce7908c77c61fcfbc91fa9d491c747c4363f32
|
|
| MD5 |
16b082e2c72bf4e1f68f58a49fb19f11
|
|
| BLAKE2b-256 |
9c19f485b85462d88ede6eabbf53c2e27dec7ca1cc26efea0a5b1d039c53eba9
|