VCLog: Minimal and Simple Console Logging
Vistor's Console Logger (VCLog) offers a minimal and colorful console logging. Single-script. No dependencies.
Features
As every logger in the world, there are four levels of logging: info, debug, warning, and error.
from vclog import Logger
Logger.info("info")
>> |I| info
Logger.debug("debug")
>> |D| debug
Logger.warning("warning")
>> |W| warning
Logger.error("error")
>> |E| error
It also has a plain method in which color, background color, and style can be specified.
Logger.plain("plain text with format", color="blue", bg_color="green", style="bold")
The logger can also be disabled by setting the disable attribute to True. This only works for the instantiated logger.
logger = Logger("instance", disable=True)
logger.info("this message will not be displayed")
The package also offers a format method to get the formatted string directly.
from vclog import format
message: str = format("Hello, World!", color="red")
The main feature of VCLog is that the Logger can be used as a static class or it can be instantiated. When instantiated, you can provide a name to be displayed.
Logger.info("as a static method")
>> |I| as a static method
logger = Logger("instance")
logger.info("as an instance")
>> |I| [instance] as an instance
Installation
Follow the next steps for installing the simulation on your device.
Requierements:
- Python 3.10.0 or higher
Note: VCLog works on Linux, Windows and Mac.
Install from pip
VCLog is available as a pip package. For installing it just use:
pip install vclog
Install from source
You can either clone the repository
git clone https://github.com/vistormu/vclog.git
or just copy and paste the logger.py file.
Documentation
The official documentation of the package is available on Read the Docs. Here you will find the installation instructions, the API reference and some minimal working examples.
Metadata
Release files for vclog 1.1.1
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 | Actions |
|---|---|---|---|---|
| vclog-1.1.1.tar.gz | 7.0 kB | Without provenance | Details for vclog-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vclog-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for vclog-1.1.1-py3-none-any.whl |
Total release size: 12.3 kB
Release files / vclog-1.1.1.tar.gz
| Download URL | vclog-1.1.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2d44ae893cdea29a6d442fd556ca5b8f51f161e18ea1fbbc9fad953c81fa596
|
|
BLAKE2b-256 checksum How to use checksums |
b00a91d26b9630319b34e22e084239fe60593a33246de925cc7eea20c1d62ecd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / vclog-1.1.1-py3-none-any.whl
| Download URL | vclog-1.1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e27e59ec931358dcad3079c160a2a2adde0c1f6fd5d354534889511ebdb41893
|
|
BLAKE2b-256 checksum How to use checksums |
898fb180363f2d52fb68d822bbcb6355fdbd98a7c02731a1c8cb1b63806050da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Security for vclog 1.1.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.