Skip to main content

A powerful, local-first logging ecosystem with a built-in UI.

Project description

TraceNest

TraceNest is a developer-first, local-first logging SDK for Python applications designed to remove the operational burden of log management from developers.

You focus on building features.
TraceNest takes care of logging.


What is TraceNest?

TraceNest is not just a logger.
It is a logging infrastructure layer embedded directly into your application.

It automatically:

  • Creates and manages log files
  • Rotates logs safely
  • Enforces retention limits
  • Provides a built-in UI to view logs
  • Integrates seamlessly with FastAPI
  • Works out of the box with zero configuration

Why TraceNest Exists

Traditional logging requires developers to:

  • Configure log handlers
  • Manage file rotation
  • Clean up old logs
  • Build tools to inspect logs

TraceNest eliminates this complexity by handling the entire log lifecycle automatically.


Key Features

  • Zero-configuration setup
  • Automatic TraceNestLogs/ folder creation
  • Day-wise or single-file logging modes
  • Strict size and retention enforcement
  • Built-in UI served from the application
  • Structured, metadata-rich logs
  • Native FastAPI middleware
  • Safe, non-blocking design
  • Free and easy to integrate

Installation

pip install tracenest

Quick Usage

from tracenest import logger

logger.info("Application started")
logger.error("Payment failed", order_id=123)

Logs are immediately written to:

TraceNestLogs/

No configuration required.


Log Storage

By default, TraceNest stores logs locally inside the project root:

TraceNestLogs/
├── 2026-01-10.log
├── 2026-01-11.log
└── archive/

Default Behavior

  • One log file per day
  • Maximum 25–30 MB per day
  • Retention up to 60 days
  • Old logs deleted automatically

A single-file mode is also available for smaller projects.


Built-In UI

When used with FastAPI, TraceNest exposes a local UI automatically:

http://localhost:8000/tracenest

UI Features

  • Live log streaming
  • Search and filtering
  • Date-based navigation
  • Download logs
  • Clear logs
  • Theme selection

Available Themes

  • Light
  • Dark
  • Blue-Dark

FastAPI Integration

TraceNest provides native FastAPI middleware for automatic request logging.

from tracenest.fastapi import TraceNestMiddleware

app.add_middleware(TraceNestMiddleware)

Automatically logs:

  • Incoming requests
  • Response status codes
  • Request duration
  • Unhandled exceptions

Safety and Customization

TraceNest is designed to work perfectly out-of-the-box. There is no complex configuration needed. Just import and log!

Changelog

Version 0.1.3

  • Fixed UI Delay Issue: Implemented a background flush thread that automatically syncs buffered logs to the disk every 1 second, completely resolving the 2-10 minute UI delay on low-traffic applications.
  • Auto-Refreshing UI: The web UI now features automatic polling, instantly displaying new logs as soon as they are written without requiring manual page reloads.

Development & Testing

  • Uses buffered I/O
  • Minimal memory footprint
  • Graceful fallback on failure
  • Works inside Docker and containers

TraceNest will never crash your application.


Documentation

Detailed documentation is available in the docs/ folder:

  • Introduction & philosophy
  • Quick start
  • Logging guidelines
  • Configuration
  • Storage & retention
  • UI usage
  • FastAPI integration
  • Performance guarantees
  • Version history

Versioning

TraceNest follows semantic versioning.

Current Version: 0.1.0

Includes:

  • Core logging API
  • Automatic folder creation
  • Day-wise and single-file logging
  • Retention enforcement
  • Built-in UI
  • FastAPI middleware

Philosophy

TraceNest is built on three principles:

  1. Zero friction for developers
  2. Full transparency of logs
  3. Production-grade safety by default

Author & Maintainer

VishwajitVM

TraceNest is actively maintained with a strong focus on real-world production use cases, developer experience, and long-term scalability.


License

TraceNest SDK is free to use and distributed under an open-source 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

tracenest-0.1.3.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

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

tracenest-0.1.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file tracenest-0.1.3.tar.gz.

File metadata

  • Download URL: tracenest-0.1.3.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tracenest-0.1.3.tar.gz
Algorithm Hash digest
SHA256 563a5f27c0a588ae040dd03d9ac3e370ba0902f9dd886070f3752dbce00fb0af
MD5 37e5409060d7b66d743c34b1647d294f
BLAKE2b-256 135fa5a90bb22239adaf8ee2391a8d860fdf02fa96ae7d62b15a5c3ee3502376

See more details on using hashes here.

File details

Details for the file tracenest-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tracenest-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tracenest-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2892562a6a0b6d5c90e761151952788038a714f0230244f7452f4c1a70e6b114
MD5 943bdf7d0be64f6d7154dbe8b7015e60
BLAKE2b-256 4191eeac103c420c58c7adf66893161948ab0ef92c55b97d7c0b7f7824472471

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