Skip to content

Commit

Permalink
docs(readme): update for new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Jun 17, 2024
1 parent 14b10ba commit 2fb9e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const app = new Elysia({
logixlysia({
config: {
ip: true,
logFilePath: './logs/example.log',
customLogFormat:
'🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}',
logFilter: {
Expand All @@ -45,6 +46,7 @@ app.listen(3000)
| `ip` | `boolean` | Display the incoming IP address based on the `X-Forwarded-For` header | `false` |
| `customLogMessage` | `string` | Custom log message to display | `🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}` |
| `logFilter` | `object` | Filter the logs based on the level, method, and status | `null` |
| `logFilePath` | `string` | Path to the log file | `./logs/elysia.log` |

## `📄` License

Expand Down

0 comments on commit 2fb9e30

Please sign in to comment.