Skip to content

Commit ee17c7f

Browse files
authored
Merge pull request #164 from fullstack-build/development
Development
2 parents 51070aa + 2792ae8 commit ee17c7f

File tree

4 files changed

+5
-35
lines changed

4 files changed

+5
-35
lines changed

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const hiddenLogger = new Logger({type: "hidden"});
273273
```
274274

275275

276-
#### Name
276+
#### name
277277

278278
Each logger has an optional name.
279279
You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
@@ -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: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const hiddenLogger = new Logger({type: "hidden"});
273273
```
274274

275275

276-
#### Name
276+
#### name
277277

278278
Each logger has an optional name.
279279
You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
@@ -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

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tslog",
3-
"version": "4.0.4",
3+
"version": "4.1.0",
44
"description": "📝 Extensible TypeScript Logger for Node.js and Browser: Dependency free, Fully customizable, Pretty errors, stack traces, and JSON output to attachable transports.",
55
"author": "Eugene <[email protected]> (http://fullstack.build/)",
66
"license": "MIT",

0 commit comments

Comments
 (0)