Skip to content

Commit

Permalink
feat(optional): add startup message config
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Sep 26, 2024
1 parent b68696f commit c7a76db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const app = new Elysia({
}).use(
logixlysia({
config: {
showBanner: true,
showStartupMessage: true,
startupMessageFormat: 'simple',
ip: true,
logFilePath: './logs/example.log',
customLogFormat:
Expand All @@ -48,7 +49,7 @@ app.listen(3000)
| Option | Type | Description | Default |
| ---------------------- | ------------------------ | --------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `showStartupMessage` | `boolean` | Display the startup message | `true` |
| `startupMessageFormat` | `"banner"` \| `"simple"` | Choose the startup message format | `"banner"` |
| `startupMessageFormat` | `"banner"` \| `"simple"` | Choose the startup message format | `"banner"` |
| `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` |
Expand Down

0 comments on commit c7a76db

Please sign in to comment.