Skip to main content

A lightweight colored logging utility for Python

Project description

CuteLogger

A super lightweight and simple colored logging utility for Python.
No setup, no dependencies — just import and go.

Why?

Sometimes you don’t need Python’s full logging system.
You just want quick, clean, colored output.

Features

  • Minimal and fast
  • Colored logs (ANSI)
  • Multiple log levels
  • Built-in help guide
  • Zero dependencies

Installation

pip install cutelogger

Usage

from cutelogger import log, help

log("This is debug", "debug")
log("All good", "info")
log("Something off", "warning")
log("Something broke", "error")
log("System dying", "critical")

log("Task done", "success")
log("Task failed", "fail")

Log States

State Color Use Case
debug cyan developer info
info green general info
warning yellow something might go wrong
error red something failed
critical red bg serious failure
success bright green success
fail bright red failure
blue blue custom logs
magenta magenta rare logs
white white default text
gray gray low priority

Help

help()          # shows everything
help("error")   # shows specific

Example

log("Server started", "success")
log("Fetching data...", "info")
log("Timeout warning", "warning")

Notes

  • Works in terminals that support ANSI colors

  • Windows may need color support enabled

Author

Trooff

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

cutelogger-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

cutelogger-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file cutelogger-0.1.0.tar.gz.

File metadata

  • Download URL: cutelogger-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for cutelogger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55147338c0dc51f262a7afe5a64d06f6324a7d1cb0295167e8f8445dc4badd6d
MD5 85936d3938ab436193ff85c3c8647a7d
BLAKE2b-256 6cfbc98218cdbc078186efa3ef5886272cfe07ca76363f14ee09071ba76ec2e0

See more details on using hashes here.

File details

Details for the file cutelogger-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cutelogger-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for cutelogger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b8062ab748c8e70ce80e263b478a24a229e3c8cd1a9f65d762efa2c4be3ca7
MD5 d8fa29a84957fde165d06e402bd67a71
BLAKE2b-256 8c2fb2d7be4e30bd10c45061f922653a4833613a15a2161fe24194a077eba29f

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