An open API service indexing awesome lists of open source software.

https://github.com/pungrumpy/logixlysia

🦊 Logixlysia is a logger for ElysiaJS
https://github.com/pungrumpy/logixlysia

bun elysia elysiajs log logger logging logixlysia

Last synced: 4 months ago
JSON representation

🦊 Logixlysia is a logger for ElysiaJS

Awesome Lists containing this project

README

          



🦊 Logixlysia


Logixlysia is a logging library for ElysiaJS
Logixlysia

## `📩` Installation

```bash
bun add logixlysia
```

## `📝` Usage

```ts
import { Elysia } from 'elysia'
import logixlysia from 'logixlysia'

const app = new Elysia({
name: 'Logixlysia Example'
}).use(
logixlysia({
config: {
showStartupMessage: true,
startupMessageFormat: 'simple',
timestamp: {
translateTime: 'yyyy-mm-dd HH:MM:ss'
},
ip: true,
logFilePath: './logs/example.log',
customLogFormat:
'🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip} {epoch}',
logFilter: {
level: ['ERROR', 'WARNING'],
status: [500, 404],
method: 'GET'
}
}
})
)

app.listen(3000)
```

## `📚` Documentation

Check out the [website](https://logixlysia.vercel.app) for more detailed documentation and examples.

## `📄` License

Licensed under the [MIT License](LICENSE).