A custom Python logging module that supports colored console logs and file-based logging, with support for custom log levels like SUCCESS, FAIL, and HEADER.
pip install .Reporter supports all standard log types (info, warning, error, etc.) and allows you to either print to the console or to a file
- reporter.print.header(...) — Prints the log message to the console with colored formatting.
- reporter.save(...) — Saves the log message to a log file for feature referances. All log levels are supported and work the same way for further example please see the examples.
To run example:
python -m examples.examplefrom core.reporter import Reporter
reporter = Reporter()
# Console-only logs
reporter.print.header("Starting application...")
reporter.print.success("All tests passed.")
# File-only logs
reporter.save.header("Saved header log.")
reporter.save.info("This info will appear only in the log file.")Build Docker image
docker compose build builderThan you can use which service you wish to use To get the version
docker compose run ulogger_version_check