A powerful, logging utility with multiple output formats, colorful console output, and extensive customization options.
Beautiful console logs with Tailwind CSS color palette for enhanced readability.
Working on it. ๐ง
Support for File, JSON, SQLite, and MongoDB logging out of the box.
Automated email notifications for critical events and custom log levels.
Automatic file rotation and backup when size limits are reached.
Send logs to remote endpoints with built-in API support.
# 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")