Skip to main content

Modern colorful logging library for Python

Project description

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

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

fogger-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

fogger-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file fogger-0.1.1.tar.gz.

File metadata

  • Download URL: fogger-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for fogger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2ae8c642722ab67ca585e3e2f66ca4212ac8229dd0faedb26883c138641b26b
MD5 3de487bfc033789b0470cc2d16b74136
BLAKE2b-256 11c642e2bd9d5c18402f202bffa7ce56865ad4d0bdae6a25d607bce8d4892d7d

See more details on using hashes here.

File details

Details for the file fogger-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fogger-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for fogger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a307abbee14d0bd631a336eb6e0e750be3a38ae4afe98854723c22404c86702c
MD5 3174810def671867c1e0c9c71068e8f3
BLAKE2b-256 4c6ac15800335076fdcb2614b7a4c3f6fa8d2fde3998fd35afae779aad2961f0

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