Skip to content

Home

Logust

Fast, Rust-powered Python logging inspired by loguru

PyPI version Python Versions License: MIT


14x faster than loguru, 4x faster than logging

Installation

pip install logust

Quick Start

import logust

logust.info("Hello, Logust!")
logust.debug("Debug message")
logust.warning("Warning message")
logust.error("Error message")
2025-12-24 15:52:42.199 | INFO     | Hello, Logust!
2025-12-24 15:52:42.199 | DEBUG    | Debug message
2025-12-24 15:52:42.199 | WARNING  | Warning message
2025-12-24 15:52:42.199 | ERROR    | Error message

Key Features

  • Blazing Fast - Rust-powered core delivers 5-24x faster performance
  • Beautiful by Default - Colored output with zero configuration
  • Simple API - loguru-compatible interface for easy migration
  • File Management - Size/time-based rotation, retention policies, gzip compression
  • JSON Support - Built-in serialization for structured logging
  • Context Binding - Attach metadata to log records with bind()
  • Exception Handling - Automatic traceback capture with catch() decorator

From Hello to Production

import logust

logust.info("Hello, Logust!")
logust.warning("Heads up")
from logust import logger

logger.add(
    "app.log",
    level="INFO",
    rotation="500 MB",
    retention="30 days",
    compression=True,
    serialize=True,
    enqueue=True,
)

Next Steps