bun add logixlysiaimport { Elysia } from 'elysia'
import logixlysia from 'logixlysia' // or import { logixlysia } from 'logixlysia'
const app = new Elysia({
name: "Elysia with Logixlysia"
})
.use(
logixlysia({
config: {
service: 'api-server',
showStartupMessage: true,
startupMessageFormat: 'banner',
showContextTree: true,
contextDepth: 2,
slowThreshold: 500,
verySlowThreshold: 1000,
timestamp: {
translateTime: 'yyyy-mm-dd HH:MM:ss.SSS'
},
ip: true
}
}))
.get('/', () => {
return { message: 'Welcome to Basic Elysia with Logixlysia' }
})
app.listen(3000)Check out the website for more detailed documentation and examples.
Licensed under the MIT License.
