Skip to content
Logixlysia
Esc
↑↓navigate↵open⌘Jpreview
On this page

Comparison

How Logixlysia compares to evlog and other Elysia loggers

Feature matrix

Capability Logixlysia evlog @bogeychan/elysia-logger
Elysia plugin Yes Yes (evlog/elysia) Yes
Pino-backed Own request logger; pino on store.pino No: its own logger, with optional drains for delivery Yes
Request context accumulation mergeContext, useLogger() log.set(), useLogger() Manual
Single access log per request Auto, next to any line a handler logs itself Auto (one wide event per request); log.emit() in scripts and workers Auto
File rotation Yes; the file is text or JSON lines Via the evlog/fs drain (NDJSON, one file per day, size and count limits) No (one file through pino.destination)
Redaction of secrets and PII autoRedact, on in the prod preset and off otherwise: by key name and by value (emails, IPs, cards, JWTs, URL passwords, bearer and basic credentials), plus redactKeys and redactPatterns for your own Built in: by key name and by value (cards, emails, IPv4 addresses, phone numbers, JWTs, bearer tokens, IBANs). On by default in production once initLogger() has run; registering the Elysia plugin alone does not turn it on pino redact paths, by key
WebSocket lifecycle logs wrapWs Manual Manual
OTel trace correlation logixlysia/otel A traceparent enricher and trace fields in its adapters; no OpenTelemetry API integration Manual
AI usage on access log logixlysia/ai: a wrapped model; a call that outlives the response reports on a later line evlog/ai: a wrapped model Manual
Presets (dev / prod) Yes N/A N/A
Built-in destinations 9 adapters: Axiom, Better Stack, ClickHouse, Datadog, HyperDX, Loki, OTLP, PostHog, Sentry (logixlysia/<name>) 13 drain adapters: Axiom, OTLP, Datadog, PostHog, Sentry, Better Stack, HyperDX, Sazabi, Grafana Loki, ClickHouse, File system (NDJSON), Memory, Browser to server (subpaths such as evlog/axiom and evlog/fs) Manual
Head + tail sampling Yes Yes No
Enrichers Built-in (logixlysia/enrichers) + custom Yes Manual
Structured errors (why / fix) HttpError createError No
Neural PII redaction logixlysia/desertant Not built in Not built in

When to choose Logixlysia

  • You want automatic access logs with Elysia-native store.logger ergonomics, and a pino instance on store.pino for your own logs.
  • You need file logging and rotation without wiring a separate drain.
  • You prefer incremental context (mergeContext) and handler lines written as they happen, next to the automatic access log.

When to consider evlog

  • You need a logger that spans more than Elysia: evlog also covers Nuxt, Next.js, SvelteKit, Nitro, TanStack Start, React Router, NestJS, Express, Hono, Fastify, oRPC, Effect and Cloudflare Workers.
  • You want the evlog CLI, which scores what each entry point of your app can tell you. The executable runs the separate @evlog/cli package, or fetches it when it is not installed.
  • You want evlog’s error catalog, client/browser logging and audit logs.
  • You want the options of evlog’s AI SDK middleware (evlog/ai), such as recording tool inputs.

Benchmarks

Run the monorepo benchmark package:

bun run bench

The benchmark package has a suite that times creating each logger, three plain-log suites in which six loggers write a string, an object and a deeply nested object into the same no-op sink, and four request suites: a plugin request path run that times each Elysia logging plugin from the request until its log line reaches the sink, a no-logger reference (plain Elysia with no plugin, the floor the others sit on), a structured sink run (logixlysia only, the prod and json presets writing to a no-op transport), and a file sink run (logixlysia only; the file write is not awaited, so it is not comparable with the others). Results vary by machine — use them for regression tracking, not absolute rankings.

Was this page helpful?