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.2.0.tar.gz (3.7 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.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cutelogger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c2f47001ddab934d2ba7205d73353e245ce417c052acd91d7aa93a64cfe4bcdd
MD5 6673a2ab61cc97e4db2ef8d9a1a17511
BLAKE2b-256 f9186c402217c5808c09ec57a9afd2719c57534ee3ad73e21807643eb22dd314

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cutelogger-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed62e2fb1122f23436cf4b59dd30c27fd425cd809dcc4ea8c78e9a6098ec00e
MD5 d76eeed9d9ae5ce56c88ced783ccea53
BLAKE2b-256 fc8ea11a065f95943fbb3d6243b3600a7ff4e39c2dab4a58017da8b488c6bb86

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