A lightweight logger for Python CLI tools and scripts
Project description
volt-logger
volt-logger is a lightweight, file-capable logging utility for Python CLI tools and small applications.
It offers basic log levels, optional timestamping, and file logging without the complexity of the standard logging module.
Features
- Print logs to console and/or file
- Supports basic log levels:
info,warn,error,debug,progress, etc. - Toggle file logging with
.set_log_file() - Timestamp support
- Built-in
Loggerinstance for quick use
Install
pip install git+https://github.com/stuarttempleton/volt-logger.git
Usage
from voltlogger import Logger
Logger.log("This is an info message.")
Logger.warn("Watch out!")
Logger.set_log_file("run.log")
Logger.report("This will log to file, if a log file is specified.")
License
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 volt_logger-0.1.0.tar.gz.
File metadata
- Download URL: volt_logger-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d91f86239384a3e287025ee0b21a926c7472860c7044b24c04ef0766449d96e9
|
|
| MD5 |
e74f0d346effe399b608218228584afe
|
|
| BLAKE2b-256 |
afe9e8f49f8a455f4ef00050db8706d394a3c660b04d95e4b7fb0a7d2f4cce92
|
Provenance
The following attestation bundles were made for volt_logger-0.1.0.tar.gz:
Publisher:
publish.yml on stuarttempleton/volt-logger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
volt_logger-0.1.0.tar.gz -
Subject digest:
d91f86239384a3e287025ee0b21a926c7472860c7044b24c04ef0766449d96e9 - Sigstore transparency entry: 244799501
- Sigstore integration time:
-
Permalink:
stuarttempleton/volt-logger@c6eb7431cf26d5b5c6478587e8205b46701b3813 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stuarttempleton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c6eb7431cf26d5b5c6478587e8205b46701b3813 -
Trigger Event:
push
-
Statement type:
File details
Details for the file volt_logger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: volt_logger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1553332aa384f876c7f98f2705fafdbb5cb275adfcb9ed02b85730839410f5
|
|
| MD5 |
5bc88771404c6bbcc4d891ddf9e487b9
|
|
| BLAKE2b-256 |
8da758c6d7a9a68e99183e8829f3715c85f8587b5ae162e8c32882071f3c47f6
|
Provenance
The following attestation bundles were made for volt_logger-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on stuarttempleton/volt-logger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
volt_logger-0.1.0-py3-none-any.whl -
Subject digest:
ed1553332aa384f876c7f98f2705fafdbb5cb275adfcb9ed02b85730839410f5 - Sigstore transparency entry: 244799506
- Sigstore integration time:
-
Permalink:
stuarttempleton/volt-logger@c6eb7431cf26d5b5c6478587e8205b46701b3813 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stuarttempleton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c6eb7431cf26d5b5c6478587e8205b46701b3813 -
Trigger Event:
push
-
Statement type: