Skip to content

Commit 40dbb2b

Browse files
Merge pull request #2891 from schiller-manuel/logger-fatal
docs(logger): add fatal log level
2 parents 1529949 + 523c8f5 commit 40dbb2b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/techniques/logger.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const app = await NestFactory.create(AppModule, {
3333
await app.listen(3000);
3434
```
3535

36-
Values in the array can be any combination of `'log'`, `'error'`, `'warn'`, `'debug'`, and `'verbose'`.
36+
Values in the array can be any combination of `'log'`, `'fatal'`, `'error'`, `'warn'`, `'debug'`, and `'verbose'`.
3737

3838
> info **Hint** To disable color in the default logger's messages, set the `NO_COLOR` environment variable to some non-empty string.
3939
@@ -59,6 +59,11 @@ export class MyLogger implements LoggerService {
5959
*/
6060
log(message: any, ...optionalParams: any[]) {}
6161

62+
/**
63+
* Write a 'fatal' level log.
64+
*/
65+
fatal(message: any, ...optionalParams: any[]) {}
66+
6267
/**
6368
* Write an 'error' level log.
6469
*/

0 commit comments

Comments
 (0)