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.1a1.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.1a1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file loggity-0.1.1a1.tar.gz.

File metadata

  • Download URL: loggity-0.1.1a1.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.1a1.tar.gz
Algorithm Hash digest
SHA256 46d1b601d798b3b66e1c5ac88f17be65e606c8a7e1af80e3268488ac2c63fe4c
MD5 49ee6c1c7ba9f9d662e48e72fd9d6c86
BLAKE2b-256 481eed7e5a04018237e5b8a3b1bba9e1447e0b416104a6879f4b704f0d3cf555

See more details on using hashes here.

File details

Details for the file loggity-0.1.1a1-py3-none-any.whl.

File metadata

  • Download URL: loggity-0.1.1a1-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.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a3a51802ad4fda32bac8dbea2c3a91010be29eb72bcf092acc334243b279b45
MD5 1bab7485aef6533b4516118c7eb53fc4
BLAKE2b-256 aeb27e37cae98e71d84d69a99ef28963e0b655c5adce8a5017338ea1a8793729

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