From 634d0f69f2bfc12cfb8ccc01afc18b90f1317241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Mon, 14 Aug 2023 13:15:29 -0300 Subject: [PATCH] feat(docs): disable boot/shutdown logs --- docs/the-basics/logging.mdx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/the-basics/logging.mdx b/docs/the-basics/logging.mdx index 451c015d..d146b443 100644 --- a/docs/the-basics/logging.mdx +++ b/docs/the-basics/logging.mdx @@ -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() +```