Skip to main content

A beautiful, configurable colored logging utility for Python

Project description

🥝 KiwiLog

A beautiful, colorful logging utility for Python

Python Status License

Elegant • Minimal • Readable • Colorful


Overview

KiwiLog is a lightweight Python logging utility designed to make terminal output clean, colorful, and easy to read.

Instead of dealing with complex logging frameworks, KiwiLog provides simple functions for common log types.

Perfect for:

  • CLI tools
  • Scripts
  • Debugging
  • Automation
  • Bots
  • Development utilities

Available Commands / How to Use

KiwiLog provides simple, color-coded logging functions:

Command Description Example
trace(msg) Very low-level tracing kiwilog.trace("Step 1 check")
debug(msg) Debugging details kiwilog.debug("Loading configuration")
info(msg) General information kiwilog.info("Server started")
notice(msg) Important notices kiwilog.notice("Update available")
success(msg) Success messages kiwilog.success("Build completed")
waiting(msg) Waiting for action kiwilog.waiting("Awaiting input")
warn(msg) Warnings kiwilog.warn("Low disk space")
error(msg) Errors kiwilog.error("Failed to connect")
critical(msg) Fatal or critical errors kiwilog.critical("Database unavailable")

🌀 Loading Animation

Show a beautiful loading animation for long-running tasks:

with kiwilog.loading("Processing data"):
    time.sleep(3)
    # Your work here
kiwilog.success("Data processed!")

📊 Progress Bars

Easily track iterative tasks:

progress = kiwilog.ProgressBar(total=100, prefix='Downloading', length=50)
for i in range(100):
    time.sleep(0.05)
    progress.update() # Automatically increments

✨ Pretty Printing

KiwiLog automatically pretty-prints dictionaries and lists:

config = {"debug": True, "timeout": 30, "users": ["Alice", "Bob"]}
kiwilog.debug(config)

⚙️ Configuration

You can configure KiwiLog via configure() or Environment Variables:

ENV Variable Description Default
KIWILOG_LEVEL Minimum log level INFO
KIWILOG_LOG_FILE Path to log file logs/bot.log
KIWILOG_FILE_LOGGING Enable file logging true
KIWILOG_SHOW_TIMESTAMP Show timestamp true
KIWILOG_SHOW_FILENAME Show filename true
KIWILOG_PRETTY Enable pretty printing true

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

kiwilog-0.2.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

kiwilog-0.2.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file kiwilog-0.2.2.tar.gz.

File metadata

  • Download URL: kiwilog-0.2.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for kiwilog-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2e17e5295a99c6511af4be5dc9ae99d06686d4a17d8de58807baf278559d5eb6
MD5 ec6c704050b6cc3a27bbfc95d0815c85
BLAKE2b-256 f48c18ee2d3c1e51f8e14850e6d41be601948365d070d42d054c37e30fe59993

See more details on using hashes here.

File details

Details for the file kiwilog-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: kiwilog-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for kiwilog-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01399a7064f1f3415bfd2f8224e703fb4ee509ab28d4ff403c87bd3aa154f9d1
MD5 357bd94cba56756eead589fdf028a91c
BLAKE2b-256 d15b38edabb992944a44dfb2fa4490ff792ccacad237011825415530424f6d52

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