Skip to content

LogPot

A modern logging library for TypeScript with custom levels, worker-thread offloading, fully customizable templates, and built-in transports featuring file rotation, retention, batching, compression, HTTP authentication (OAuth2, Basic, ...) and more.

LogPot makes structured, high-performance logging effortless.
Whether you’re shipping logs to stdout, files with rotation, HTTP endpoints, or your own custom sink, LogPot’s clean API and robust feature set let you focus on your application. never your logger.

✅ Type-Safe Events

Define custom level maps & metadata shapes with full compile-time guarantees.

🔌 Pluggable Transports

Console, File (rotation, batching, retries), HTTP (auth, batching), or your own sink via abstract base.

🎨 Powerful Formatting

Out-of-the-box JSON-array, NDJSON, envelope, or fully templatable text with padding, truncation, colors & emoji.

🐞 Robust Error Handling

Turn Error objects (including nested causes & AggregateError) into safe, circular-free JSON with optional stack & hooks.

⚙️ Fine-Grained Control

Level filters, category sets, sync/async transformers, gzip compression, custom field maps, and merge-meta options.

🧵 Worker Threads

Push heavy I/O and formatting off the event loop. keep your app responsive at scale.