Skip to content

Commit

Permalink
feat(docs): disable boot/shutdown logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Aug 14, 2023
1 parent 358e0d4 commit 634d0f6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/the-basics/logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,23 @@ channels: {
}
}
```

## Disabling boot and shutdown logs

When your application starts, Athenna creates some logs to help you to track
the application boot process. The same happens when your application is shuting
down.

If you wish to run your application in silent mode, you can disable this kind
of logs using the `Ignite.load()` method:

```typescript filename="bootstrap/main.ts"
import { Ignite } from '@athenna/core'

const ignite = await new Ignite().load(import.meta.url, {
bootLogs: false, 👈
shutdownLogs: false, 👈
})

await ignite.httpServer()
```

0 comments on commit 634d0f6

Please sign in to comment.