Skip to content

Commit f8cc886

Browse files
committed
Update docs
1 parent d4e2e1d commit f8cc886

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,14 @@ new Logger({ exposeErrorCodeFrame: false });
433433
![tslog with a code frame](https://raw.githubusercontent.com/fullstack-build/tslog/master/docs/assets/tslog_code_frame.png)
434434

435435

436+
##### `ignoreStackLevels`
437+
```default: 3```
438+
439+
Defines how many stack levels should be ignored.
440+
`tslog` adds additional 3 layers to the stack and that the reason why the default is set to `3`.
441+
You can increase this number, if you want to add additional layers (e.g. a factory class or a facade).
442+
443+
436444
##### `suppressStdOutput`
437445
```default: false```
438446

@@ -469,6 +477,12 @@ new Logger({ name: "console", overwriteConsole: true });
469477

470478
_There is no `console.fatal`._
471479

480+
481+
##### `colorizePrettyLogs`
482+
```default: true```
483+
484+
By default `pretty` output is colorized with ANSI escape codes. If you prefer a plain output, you can disable the colorization with this setting.
485+
472486
##### `logLevelsColors`
473487

474488
This setting allows you to overwrite the default log level colors of `tslog`.

0 commit comments

Comments
 (0)