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.3.0.tar.gz (4.6 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.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logwise-1.3.0.tar.gz
Algorithm Hash digest
SHA256 811a7940dce42cd24c5587f2173571027219f8e5de01158f9c652ea7d27f9d68
MD5 feaea626c22b2e9ab211de1f6c5626e7
BLAKE2b-256 106d6ea76eae1b1c36071baec1e00ca4037f7ce9ce994e0589a2ac048ed74931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logwise-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23a1c2f88315298c716d8e3088e89fb62ed8c8df4380ea2463209dd19bbabb23
MD5 1d7edc7fc84b5af86901053c4d1f2bfd
BLAKE2b-256 013ddf6b46d37ea145f4bf314df845f5b8235e9877622054e565cfdb3554944d

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