178
Logixlysia is a powerful logging plugin designed specifically for Elysia.js applications running on the Bun runtime. It transforms incoming requests into structured, colorful log lines, making it easier to understand your application's traffic.
Key features include:
Structured Logging: Every request is logged with essential details like method, path, status, and duration in a readable format.
Filtering: Easily filter out noise by log level, HTTP method, or status code, ensuring that important warnings and errors are highlighted while routine requests like health checks fade away.
Sampling: Optimize your log bill with intelligent sampling strategies. Head sampling retains a percentage of high-volume logs, while tail sampling captures dropped lines when requests error or run slow, ensuring cost-efficiency without losing critical information.
Enrichers: Add context to every log entry by enriching them with fields such as trace IDs, geographical information, and parsed user agents.
File Rotation: Write logs to disk with built-in size- and time-based rotation, ensuring that older log files are automatically compressed and archived.
Multiple Adapters: Seamlessly ship logs to nine different observability platforms, including Axiom, Datadog, Sentry, PostHog, Better Stack, HyperDX, Grafana Loki, ClickHouse, and any OpenTelemetry backend via OTLP. These adapters are non-blocking and handle batching and retries automatically.
Logixlysia is built with Pino under the hood and is OpenTelemetry ready, ensuring compatibility and performance within your Elysia.js stack.
Built with