Functions
logixlysia
Main plugin function that adds logging capabilities to your Elysia application.
options(optional): Configuration options for Logixlysia
Logixlysia: Elysia instance with logging capabilities
Types
Logixlysia
Elysia instance type with Logixlysia store.
LogixlysiaSingleton: a closed store plus empty decorator / derive / resolve slots that avoid both SingletonBase’s wide Record<string, unknown> and Record<string, never> (the latter would intersect Elysia’s Context keys with never). That keeps Context and WebSocket ws.data precise after .use(logixlysia()).
Options
Configuration options for Logixlysia.
LogixlysiaStore
Store type available in Elysia context.
logger: Logger instance with helper methodspino: Direct Pino logger instancebeforeTime: Request start time (bigint)
LogixlysiaStore a closed object type (no index signature). That helps merged handler and WebSocket types stay accurate.
Logger
Logger interface with logging methods.
LogLevel
Log level type.
Transport
Custom transport interface.
LogRotationConfig
Log rotation configuration.
Pino
Pino logger type.
LogixlysiaContext
Context type for request handlers.
Classes
HttpError
An HTTP error carrying the context that makes a failure actionable.
status— HTTP status codecode— stable machine-readable identifier the client can branch on, e.g.PAYMENT_DECLINED. Unlikemessage, it is safe to depend on: rewording the message does not break a callerwhy— why the request failed, in plain languagefix— what the caller should do about itlink— documentation URL for this failureinternal— log-only diagnostics. Non-enumerable and excluded fromtoJSON(), so no serializer can put it in a response body
internal, rendered in the context tree as error.code, error.why, error.fix, error.link, and error.internal.
An error with no client-facing fields keeps its previous behaviour exactly — throw new HttpError(404, 'User not found') still responds with the bare message, not JSON. Only an error carrying at least one of code, why, fix, or link responds as JSON.