Skip to content

Commit 2792ae8

Browse files
committed
Update README
1 parent a83e012 commit 2792ae8

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -630,21 +630,6 @@ const logMsg = logger.info("Test");
630630
> **`tslog` follows a semantic release policy.** A major version change indicates breaking changes.<br><br>
631631
> `tslog >=4` is less limiting when it comes to configuration. There are many use cases (especially when it comes to integration with 3rd party services) that now can be achieved elegantly and were not possible before.
632632
633-
### Name and other constructor parameters
634-
635-
`tslog` < 4 had a name parameter on the constructor. v4 removed all preconfigured parameters and allows you to create your own log object (s. "Defining and accessing `logObj`").
636-
637-
**OLD:** `tslog` < 4
638-
```typescript
639-
const log: Logger = new Logger({ type: "json", name: "myLogger" });
640-
```
641-
642-
**NEW:** `tslog` >= 4
643-
```typescript
644-
const log = new Logger({ type: "json" }, { name: "DefaultLogger" });
645-
```
646-
647-
648633
### RequestID: Mark a request (e.g. HTTP) call with AsyncLocalStorage and `tslog`
649634
>**Node.js 13.10 introduced a new feature called <a href="https://nodejs.org/api/async_hooks.html#async_hooks_class_asynclocalstorage" target="_blank">AsyncLocalStorage.</a>**<br>
650635

docs/README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -630,21 +630,6 @@ const logMsg = logger.info("Test");
630630
> **`tslog` follows a semantic release policy.** A major version change indicates breaking changes.<br><br>
631631
> `tslog >=4` is less limiting when it comes to configuration. There are many use cases (especially when it comes to integration with 3rd party services) that now can be achieved elegantly and were not possible before.
632632
633-
### Name and other constructor parameters
634-
635-
`tslog` < 4 had a name parameter on the constructor. v4 removed all preconfigured parameters and allows you to create your own log object (s. "Defining and accessing `logObj`").
636-
637-
**OLD:** `tslog` < 4
638-
```typescript
639-
const log: Logger = new Logger({ type: "json", name: "myLogger" });
640-
```
641-
642-
**NEW:** `tslog` >= 4
643-
```typescript
644-
const log = new Logger({ type: "json" }, { name: "DefaultLogger" });
645-
```
646-
647-
648633
### RequestID: Mark a request (e.g. HTTP) call with AsyncLocalStorage and `tslog`
649634
>**Node.js 13.10 introduced a new feature called <a href="https://nodejs.org/api/async_hooks.html#async_hooks_class_asynclocalstorage" target="_blank">AsyncLocalStorage.</a>**<br>
650635

0 commit comments

Comments
 (0)