From 523c8f5279dea101ec0326b49f695383de5d33ba Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Sat, 21 Oct 2023 16:18:16 +0200 Subject: [PATCH] docs(logger): add fatal log level --- content/techniques/logger.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/techniques/logger.md b/content/techniques/logger.md index 72d444f7c9..089a5f0f34 100644 --- a/content/techniques/logger.md +++ b/content/techniques/logger.md @@ -33,7 +33,7 @@ const app = await NestFactory.create(AppModule, { await app.listen(3000); ``` -Values in the array can be any combination of `'log'`, `'error'`, `'warn'`, `'debug'`, and `'verbose'`. +Values in the array can be any combination of `'log'`, `'fatal'`, `'error'`, `'warn'`, `'debug'`, and `'verbose'`. > info **Hint** To disable color in the default logger's messages, set the `NO_COLOR` environment variable to some non-empty string. @@ -59,6 +59,11 @@ export class MyLogger implements LoggerService { */ log(message: any, ...optionalParams: any[]) {} + /** + * Write a 'fatal' level log. + */ + fatal(message: any, ...optionalParams: any[]) {} + /** * Write an 'error' level log. */