You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
👨👧👦 **Child logger with inheritance**<br>
28
28
🙊 **Mask/hide secrets and keys**<br>
29
29
🔍 **Native support for request IDs (<ahref="https://nodejs.org/api/async_hooks.html#async_hooks_async_hooks"target="_blank">`async_hooks`</a>, <ahref="https://nodejs.org/api/async_hooks.html#async_hooks_class_asynclocalstorage"target="_blank">`AsyncLocalStorage`</a>)**<br>
30
-
🌳**Tree shaking support**<br>
30
+
📦**CommonJS and ES Modules support with tree shaking support**<br>
31
31
🧲 **Optionally catch all `console` logs**<br>
32
32
✍️ **well documented**<br>
33
33
@@ -55,11 +55,15 @@ This feature enables `tslog` to reference a correct line number in your TypeScri
55
55
// ...
56
56
"compilerOptions": {
57
57
// ...
58
-
"sourceMap":true
58
+
"sourceMap":true,
59
+
// we recommend using an current ES version
60
+
"target":"es2019",
59
61
}
60
62
}
61
63
```
62
64
65
+
66
+
63
67
### Simple example
64
68
65
69
```typescript
@@ -85,7 +89,8 @@ log.fatal(new Error("I am a pretty Error with a stacktrace."));
85
89
***Fully typed:** Written in TypeScript, fully typed, API checked with <ahref="https://api-extractor.com"target="_blank">_api-extractor_</a>, <ahref="https://github.com/microsoft/tsdoc"target="_blank">_TSDoc_</a> documented
86
90
***Source maps lookup:** Shows exact position also in TypeScript code (compile-to-JS), one click to IDE position
0 commit comments