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. */