preset for one-line environment defaults. Explicit config fields always override the preset.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The canonical Logixlysia documentation lives at logixlysia.vercel.app. This mirror exists to power the AI assistant.
Opinionated dev, prod, and json logging defaults
preset for one-line environment defaults. Explicit config fields always override the preset.
import { Elysia } from 'elysia'
import logixlysia from 'logixlysia'
const app = new Elysia().use(
logixlysia({
preset: 'prod',
config: {
service: 'api',
logFilePath: './logs/app.log'
}
})
)
| Preset | Startup banner | Pretty print | Context tree | autoRedact |
|---|---|---|---|---|
dev | Yes (banner) | Yes | Yes | No |
prod | No | No | No | Yes |
json | No | No | No | No |
logixlysia({
preset: 'prod',
config: {
autoRedact: false,
showStartupMessage: true
}
})
import { resolveOptions } from 'logixlysia'
const options = resolveOptions({ preset: 'dev', config: { service: 'api' } })
Was this page helpful?