Skip to main content

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 Logger instance 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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volt_logger-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volt_logger-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for volt_logger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d91f86239384a3e287025ee0b21a926c7472860c7044b24c04ef0766449d96e9
MD5 e74f0d346effe399b608218228584afe
BLAKE2b-256 afe9e8f49f8a455f4ef00050db8706d394a3c660b04d95e4b7fb0a7d2f4cce92

See more details on using hashes here.

Provenance

The following attestation bundles were made for volt_logger-0.1.0.tar.gz:

Publisher: publish.yml on stuarttempleton/volt-logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for volt_logger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed1553332aa384f876c7f98f2705fafdbb5cb275adfcb9ed02b85730839410f5
MD5 5bc88771404c6bbcc4d891ddf9e487b9
BLAKE2b-256 8da758c6d7a9a68e99183e8829f3715c85f8587b5ae162e8c32882071f3c47f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for volt_logger-0.1.0-py3-none-any.whl:

Publisher: publish.yml on stuarttempleton/volt-logger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page