Skip to content

Commit

Permalink
docs(readme): update code usage example
Browse files Browse the repository at this point in the history
fix #44
  • Loading branch information
PunGrumpy committed May 20, 2024
1 parent 11f757b commit cf70865
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ const app = new Elysia({
name: 'Logixlysia Example'
}).use(
logixlysia({
ip: false,
customLogMessage:
'🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}'
config: {
ip: true,
customLogFormat:
'🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}',
logFilter: {
level: ['ERROR', 'WARNING'],
status: [500, 404],
method: 'GET'
}
}
})
)

Expand Down

0 comments on commit cf70865

Please sign in to comment.