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
BOXlog 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61cf163c80f76a996a81c75fdc97190e9370bb2050f4bc54eb5809221f865b8e
|
|
| MD5 |
13b3063c0d4d2bd76c47a594d2c8b3f0
|
|
| BLAKE2b-256 |
da988e1042e41c7cd1e4e55150d205362eddc3606563cb7d10844734c722b791
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1c85d8f875d6991eb0f59c1fe295d0a377031bf517ffaf23ed7da724650cf3f
|
|
| MD5 |
a7d7cc94478dedca35f0dbf8e6725309
|
|
| BLAKE2b-256 |
ee703319243599235e1334c3639fda6f6f8dc169e7fb3f32948922ee2ac033e0
|