Skip to main content

A simple, beautiful logger with a clean and intuitive interface

Project description

Loggity

A simple, beautiful logger with a clean and intuitive interface

Protocol Version Development Status License Python

Features

  • Simple API: Just create a logger and start logging
  • Multiple log levels: INFO, WARN, ERROR, DEBUG, SUCCESS
  • Custom headers: Create your own log types
  • Minimal dependencies: Pure Python, no external packages required
  • Clean output: Formatted logs with consistent spacing

Installation

pip install loggity

Quick Start

from loggity import Logger

# Create a logger instance
log = Logger()

# Start logging
log.info("Application started")
log.success("Database connected successfully")
log.warn("Disk space running low")
log.error("Failed to send email")
log.debug("Cache miss for key: user_123")

API Reference

Basic Methods

Method Description Example
info(message) Informational messages log.info("Server started on port 8080")
warn(message) Warning messages log.warn("API rate limit at 90%")
error(message) Error messages log.error("Connection timeout")
debug(message) Debug messages log.debug("Request payload: {...}")
success(message) Success messages log.success("Data exported")

Custom Logging

Create logs with any header using the custom() method:

# Custom log types
log.custom("AUDIT", "User admin performed deletion")
log.custom("METRIC", "Response time: 245ms")
log.custom("SECURITY", "Failed login attempt from 192.168.1.100")
log.custom("PERFORMANCE", "Query executed in 0.3s")

Output Format

All logs follow a consistent format:

HEADER:    message

Examples:

INFO:    Application started
SUCCS:   Database connected
WARN:    Disk space low
ERROR:   Connection failed
DEBUG:   Cache miss
AUDIT:   User logged in

License

This project is licensed under the MIT 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

loggity-0.1.0a0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

loggity-0.1.0a0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file loggity-0.1.0a0.tar.gz.

File metadata

  • Download URL: loggity-0.1.0a0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for loggity-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 d51ce4e3bec626eabef9a3c0cb0e788f50bbe841bef5fcb88ce9a6663bf07bc2
MD5 06e41b576d9109fca9a0cc05353cf7b5
BLAKE2b-256 619a3be276c3dd1e55f81957936811a21d4585cb48277f98b71350adaf97a18e

See more details on using hashes here.

File details

Details for the file loggity-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: loggity-0.1.0a0-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.14.2

File hashes

Hashes for loggity-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ac9dee6004627345d27789e9bccc4dcb6adc892c5cdee061751b2196f0460f
MD5 e518ffb9d6816fca71cb959ee12218c6
BLAKE2b-256 4926551d5cef5ddca9d2c68fe0fe2d85ba3aa3bbc384b9c0edeb6c00a4959208

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