Skip to main content

Logging tools for console and file logging

Project description

loggerctl

loggerctl is a Python library for logging data to the console and files.

Full documentation can be found on ReadTheDocs(TODO)

Features

loggerctl features multiple available Logger presets to use:

  • SimpleLogger: A simple logger that can log to STDOUT or STDERR. Can be colored.
  • FileLogger: A logger that can log to a file. Cannot be colored.
  • TeeLogger: A logger that can log to both a file and STDOUT. Can be colored.

In addition, the base logger class, Logger, can be used to create custom presets.

Each logger can take a log_type parameter to set the severity level of the log:

  • INFO: A regular info message: Yellow
  • DEBUG: A debug message: Dark gray
  • SUCCESS: A success message: Green
  • WARN: A warning message: Orange/Bright yellow
  • ERROR: An error message: Red
  • CRITICAL: A critical message: Red text, black background

All types can be found in LogType. Additionally, setting type_coloring to True will color the text the same way as the log type.

LogDate can be used to get the current date and time. Pass True to utc to use UTC time instead of the local timezone.

Installation

loggerctl can be installed from PyPI using pip:

pip install loggerctl

Quickstart

TODO

Credits

Thank you to the following:

  • termcolor: Most of the coloring is done by this package. Huge thanks to the devs for this amazing package!
  • Sphinx: Used for building the documentation.
  • ReadTheDocs: Used for hosting the documentation.

License

Copyright (C) 2026  AstroLightz

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

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

loggerctl-2026.5.26.15.15.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

loggerctl-2026.5.26.15.15-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file loggerctl-2026.5.26.15.15.tar.gz.

File metadata

  • Download URL: loggerctl-2026.5.26.15.15.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for loggerctl-2026.5.26.15.15.tar.gz
Algorithm Hash digest
SHA256 954ad57507817342d01f5a52a939781cee431d7ba242f07990eb806281b36ad8
MD5 3a82e19e9b12e75b7d02bd7a350883e8
BLAKE2b-256 69c8b4e5a7c2baef41f56cbfe49cdc928f8828b84eb03d1eb83dd6892cc6eac7

See more details on using hashes here.

File details

Details for the file loggerctl-2026.5.26.15.15-py3-none-any.whl.

File metadata

File hashes

Hashes for loggerctl-2026.5.26.15.15-py3-none-any.whl
Algorithm Hash digest
SHA256 187d4ca8888b9554672f450b81b932a8b4ed4e79e0dcb00bd056aade4e0ed0bb
MD5 8424404dfe29f5765ba84198274ae2ad
BLAKE2b-256 861b04a4c2ac317d1b567adf4da304559c5c0875a3e415db6527dd00a2f30d9e

See more details on using hashes here.

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