vt100logging
The original logging package lacks basic coloring of the log output. This does not help when one tries to quickly check on the real time console feed.
vt100logging is a simple wrapper around logging. Using VT100 escape codes it colors the log feed.
Supported OS
Tested on MS Win11 and Ubuntu.
Installation
pip install -U vt100logging
How to use it
Simple use case
from vt100logging import vt100logging_init, D, I, W, E
vt100logging_init('LOGGED-MODULE', is_verbose=True)
D('example DEBUG message')
I('example INFO message')
W('example WARNING message')
E('example ERROR message')
Extract more information from exception
from vt100logging import EX
...
except Exception as e:
EX(e)
...
Store log into file on the side:
from vt100logging import vt100logging_init, I
vt100logging_init('my-module', store_to_log_file=True)
I("Logging both to console AND log file")
Contribution
If something is wrong, you can raise issues here.
Copyright
Created by Grzegorz Grzęda. Distributed under MIT license
Metadata
Release files for vt100logging 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vt100logging-1.1.0.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vt100logging-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / vt100logging-1.1.0.tar.gz
| Download URL | vt100logging-1.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a81b15e6cc2201b2fd85c37bc6bb73d107da7db29468aa408ac500035661961
|
|
BLAKE2b-256 checksum How to use checksums |
c80c2ee02ae805b2e3578fe088211bae7718143f4c0ae7479a53ab6a9ae7b2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / vt100logging-1.1.0-py3-none-any.whl
| Download URL | vt100logging-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fba5be4c9e5e5e7c7ae331c69693110b77047946fe0dc680747526d3de623151
|
|
BLAKE2b-256 checksum How to use checksums |
876886b2e7bcf1d3c50e46953d6fa1f4bcf6985191e6a85f5e317db95e5bbde4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for vt100logging 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.