🦊 Logixlysia is a logger for Elysia
npm install logixlysia🦊 Logixlysia
📩 Installation``bash`
bun add logixlysia
Usage`ts
import { Elysia } from 'elysia'
import logixlysia from 'logixlysia' // or import { logixlysia } from 'logixlysia'
const app = new Elysia({
name: "Elysia with Logixlysia"
})
.use(
logixlysia({
config: {
showStartupMessage: true,
startupMessageFormat: 'simple',
timestamp: {
translateTime: 'yyyy-mm-dd HH:MM:ss.SSS'
},
logFilePath: './logs/example.log',
ip: true,
customLogFormat:
'🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}'
}
}))
.get('/', () => {
return { message: 'Welcome to Basic Elysia with Logixlysia' }
})
app.listen(3000)
`
DocumentationCheck out the website for more detailed documentation and examples.
Licensed under the MIT License.