Skip to content

Commit

Permalink
Merge pull request #2891 from schiller-manuel/logger-fatal
Browse files Browse the repository at this point in the history
docs(logger): add fatal log level
  • Loading branch information
kamilmysliwiec authored Oct 23, 2023
2 parents 1529949 + 523c8f5 commit 40dbb2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/techniques/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
*/
Expand Down

0 comments on commit 40dbb2b

Please sign in to comment.