Fogger
Modern, colorful and fully customizable logging for Python.
Features
- Zero dependencies
- Beautiful terminal output
- Fully customizable format system
- Custom badge styles
- ANSI color support
- Lightweight and fast
- Windows & Linux support
- Clean developer experience
Installation
pip install fogger
Quick Example
from fogger import log
log.info("Starting development server...")
log.success("Database connected successfully")
log.warning("Memory usage is getting high")
log.error("Failed to authenticate user")
log.question("Do you want to continue?")
log.debug("Loaded environment variables")
Output
text
16:21:08 INFO Starting development server...
16:21:08 SUCCESS Database connected successfully
16:21:08 WARNING Memory usage is getting high
16:21:08 ERROR Failed to authenticate user
16:21:08 QUESTION Do you want to continue?
16:21:08 DEBUG Loaded environment variables
Custom Formatting
Fogger allows you to fully customize log output.
from fogger import log
log.set_format("{badge} → {message}")
log.success("Custom format enabled")
Output:
text
SUCCESS → Custom format enabled
Custom Badge Style
from fogger import log
log.set_badge_style("[ {label:^8} ]")
log.info("New badge style applied")
Output:
text
[ INFO ] New badge style applied
Available Variables
| Variable | Description |
|---|---|
| {time} | Current time |
| {badge} | Colored badge |
| {level} | Log level |
| {message} | Log message |
Log Types
log.info("Information")
log.success("Success")
log.warning("Warning")
log.error("Error")
log.question("Question")
log.debug("Debug")
Utilities
Line
log.line()
Space
log.space()
Example
from fogger import log
log.info("Server starting...")
log.success("API connected")
log.line()
log.set_format("{time} {badge} → {message}")
log.warning("Custom formatting enabled")
Why Fogger?
- Clean terminal aesthetics
- Full customization
- No dependencies
- Fast & lightweight
- Developer-friendly
Author
Made with love by 55e5
GitHub: https://github.com/qw97-alt
License
MIT
Metadata
Release files for fogger 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fogger-0.1.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fogger-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / fogger-0.1.1.tar.gz
| Download URL | fogger-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2ae8c642722ab67ca585e3e2f66ca4212ac8229dd0faedb26883c138641b26b
|
|
BLAKE2b-256 checksum How to use checksums |
11c642e2bd9d5c18402f202bffa7ce56865ad4d0bdae6a25d607bce8d4892d7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / fogger-0.1.1-py3-none-any.whl
| Download URL | fogger-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a307abbee14d0bd631a336eb6e0e750be3a38ae4afe98854723c22404c86702c
|
|
BLAKE2b-256 checksum How to use checksums |
4c6ac15800335076fdcb2614b7a4c3f6fa8d2fde3998fd35afae779aad2961f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|