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:

# Default dots animation
with kiwilog.loading("Processing data"):
    time.sleep(3)

# Rotating spinner
with kiwilog.loading("Uploading", animation_type="spinner"):
    time.sleep(3)

🎡 Spinners (Manual Control)

If you prefer manual control over spinners:

spinner = kiwilog.Spinner("Connecting to database", animation_type="spinner")
spinner.start()
time.sleep(2)
spinner.stop("Connected!")

✨ 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.5.tar.gz (5.7 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.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kiwilog-0.2.5.tar.gz
  • Upload date:
  • Size: 5.7 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.5.tar.gz
Algorithm Hash digest
SHA256 3f1bcdcf2ccc0f2cba78b55ec6abec2c2bf80a74dfe2b7f116ebec564b59efe7
MD5 0b2dfd97b624fde83f9f1d34d2722493
BLAKE2b-256 21607d9118c2a552dfbd2b7018266a5bd38840fb04448148c05bea5f2f0306ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kiwilog-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c13adf4f75b9cb46a032f5ad098875177e93a550c81f67c980c71f586f6497ce
MD5 4331244ddfc20d9ed695b93ce9e75b00
BLAKE2b-256 500c2c1354cb52cb0074114fb5ce43b87d37b566d9338d526f845b09b6d15918

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