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 outputs to STDOUT. Coloring based on log type.
  • StdLogger: A 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.6.2.13.15.tar.gz (83.2 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.6.2.13.15-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for loggerctl-2026.6.2.13.15.tar.gz
Algorithm Hash digest
SHA256 bbb1ba8def73c231254e24bec6e180f20a7c93c8abfd2cd6b9506ff33f6012f8
MD5 2ee0d731dbe3e28a581a7aeda7adf6a2
BLAKE2b-256 03bf3191650bad62816a497017b5ce150739722373ee3ec81ca7bf2ebe742504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for loggerctl-2026.6.2.13.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e5cc1d726355cee5944ba4a3f1ecd698d019eb147f66554ec16b6d5ce29b7d91
MD5 526533358ba6566173eb91ca6c604d39
BLAKE2b-256 cc5107f288382793ab0d46b26291e3d9e39d246b5b22f687d601b102f14f34dc

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