Skip to main content

A clean, colorful terminal logger with boxed message support.

Project description

logwise

A colorful, modern terminal logger with support for rounded boxed messages, rich formatting, and contextual output โ€” all with zero dependencies.


๐Ÿš€ Features

  • ๐ŸŒˆ ANSI-colored log levels (debug/info/warn/error/box)
  • ๐Ÿ“ฆ Custom BOX log level with center-aligned, rounded box borders
  • ๐Ÿง  Smart handling of f-strings and printf-style logging
  • ๐Ÿงญ Logs include file name and line number
  • ๐Ÿชถ Lightweight, no dependencies

๐Ÿ“ฆ Installation

pip install logwise

๐Ÿ› ๏ธ Usage

from logwise import logger

logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning")
logger.error("This is an error")
logger.box("This is a boxed highlight")

๐Ÿ“ Example Output

DEBUG  2025-04-22 12:00:01.123 [DEBUG] This is a debug message (main.py:10)
INFO   2025-04-22 12:00:01.124 [INFO ] This is an info message (main.py:11)
WARN   2025-04-22 12:00:01.125 [WARN ] This is a warning (main.py:12)
ERROR  2025-04-22 12:00:01.126 [ERROR] This is an error (main.py:13)
BOX    2025-04-22 12:00:01.127 (main.py:14)
       โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
       โ”‚ This is a boxed highlight  โ”‚
       โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿงฉ Developer Notes

logwise uses a CustomLogger class built atop the Python logging module. You can plug it into existing logging flows, redirect output, or customize formatting as needed.


๐Ÿ“„ License

MIT. See LICENSE.

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

logwise-1.4.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

logwise-1.4.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file logwise-1.4.0.tar.gz.

File metadata

  • Download URL: logwise-1.4.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for logwise-1.4.0.tar.gz
Algorithm Hash digest
SHA256 61cf163c80f76a996a81c75fdc97190e9370bb2050f4bc54eb5809221f865b8e
MD5 13b3063c0d4d2bd76c47a594d2c8b3f0
BLAKE2b-256 da988e1042e41c7cd1e4e55150d205362eddc3606563cb7d10844734c722b791

See more details on using hashes here.

File details

Details for the file logwise-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: logwise-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for logwise-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c85d8f875d6991eb0f59c1fe295d0a377031bf517ffaf23ed7da724650cf3f
MD5 a7d7cc94478dedca35f0dbf8e6725309
BLAKE2b-256 ee703319243599235e1334c3639fda6f6f8dc169e7fb3f32948922ee2ac033e0

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