Modern Python Logging

A powerful, logging utility with multiple output formats, colorful console output, and extensive customization options.

Powerful Features

๐ŸŽจ

Colorful Output

Beautiful console logs with Tailwind CSS color palette for enhanced readability.

โšก

Async Support

Working on it. ๐Ÿšง

๐Ÿ“

Multiple Formats

Support for File, JSON, SQLite, and MongoDB logging out of the box.

๐Ÿ“ง

Email Alerts

Automated email notifications for critical events and custom log levels.

๐Ÿ”„

Auto Rotation

Automatic file rotation and backup when size limits are reached.

๐ŸŒ

API Integration

Send logs to remote endpoints with built-in API support.

Quick Start & Examples

# Install Tamga
pip install tamga

# Initialize logger
from tamga import Tamga

logger = Tamga(
    logToFile=True,
    logToJSON=True,
    logToConsole=True
)

# Available log levels with different colors
logger.info("Connected to database")          # Sky blue
logger.warning("High memory usage")           # Amber
logger.error("Connection failed")             # Rose
logger.success("Task completed")              # Emerald
logger.debug("Processing request")            # Indigo
logger.critical("System overload")            # Red

# Custom logging with your own color
logger.custom("Custom event", "EVENT", "orange")