Introduction
Get started with Logixlysia, a high-performance logging plugin for Elysia.js
Logixlysia is a powerful logging plugin for Elysia.js that provides structured logging with a fast built-in console logger, plus an optional Pino integration when you need Pino’s ecosystem. Built for production environments, it offers flexible configuration, file logging, and seamless integration with your Elysia applications.

Features
- Request context: accumulate fields with
mergeContextinto a context tree. Learn more - Presets:
dev,prod, andjsonoutput. Learn more - File logging: writes to disk with rotation by size, age, or count. Learn more
- Adapters: nine built-in destinations, Axiom, Better Stack, ClickHouse, Datadog, HyperDX, Loki, OTLP, PostHog, and Sentry. Learn more
- Sampling: head and tail sampling controls log volume. Learn more
- Enrichers: add trace, user agent, geo, and size fields to every request. Learn more
- Redaction:
autoRedactmasks PII by pattern;logixlysia/desertantadds neural redaction. Config docs, neural redaction docs - Structured errors:
HttpErrorcarrieswhy,fix, andlink. Learn more - Request IDs: read from the incoming request or generated for every request. Learn more
- OpenTelemetry: trace correlation and AI usage metrics on the access log. Learn more
- WebSocket logging: lifecycle logs via
wrapWs. Learn more
Quick Start
import { Elysia } from 'elysia'
import logixlysia from 'logixlysia'
const app = new Elysia()
.use(logixlysia())
.get('/', () => 'Hello World')
.listen(3000)
Installation
bun add logixlysia
Why Logixlysia?
Logixlysia combines the simplicity of Elysia’s plugin system with a fast built-in console logger, plus an optional Pino integration for teams that want Pino’s ecosystem. It provides a clean API for logging requests, responses, and custom events while maintaining minimal overhead.
Whether you’re building a small API or a large-scale application, Logixlysia scales with your needs—from simple console logging to complex multi-transport setups.