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
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,8 +275,9 @@ const hiddenLogger = new Logger({type: "hidden"});
275
275
276
276
#### Name
277
277
278
-
Each logger has an optional name. You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
279
-
Names get also inherited to sub loggers and can be found inside the `Meta`-object `parentNames` as well as printed out with a separator (e.g. `:`).
278
+
Each logger has an optional name.
279
+
You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
280
+
Names get also inherited to sub loggers and can be found inside the `Meta`-object `parentNames` as well as printed out with a separator (e.g. `:`) in `pretty` mode.
280
281
281
282
Simple name example:
282
283
```typescript
@@ -296,7 +297,7 @@ secondSubLogger.silly("foo bar 2");
296
297
```
297
298
298
299
Output:
299
-
```shell
300
+
```bash
300
301
2022-11-17 10:45:47.705 SILLY [/examples/nodejs/index2.ts:51 MainLogger] foo bar
301
302
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:54 MainLogger:FirstSubLogger] foo bar 1
302
303
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:57 MainLogger:FirstSubLogger:SecondSubLogger] foo bar 2
Copy file name to clipboardExpand all lines: docs/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,8 +275,9 @@ const hiddenLogger = new Logger({type: "hidden"});
275
275
276
276
#### Name
277
277
278
-
Each logger has an optional name. You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
279
-
Names get also inherited to sub loggers and can be found inside the `Meta`-object `parentNames` as well as printed out with a separator (e.g. `:`).
278
+
Each logger has an optional name.
279
+
You can find the name of the logger responsible for a log inside the `Meta`-object or printed in `pretty` mode.
280
+
Names get also inherited to sub loggers and can be found inside the `Meta`-object `parentNames` as well as printed out with a separator (e.g. `:`) in `pretty` mode.
280
281
281
282
Simple name example:
282
283
```typescript
@@ -296,7 +297,7 @@ secondSubLogger.silly("foo bar 2");
296
297
```
297
298
298
299
Output:
299
-
```shell
300
+
```bash
300
301
2022-11-17 10:45:47.705 SILLY [/examples/nodejs/index2.ts:51 MainLogger] foo bar
301
302
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:54 MainLogger:FirstSubLogger] foo bar 1
302
303
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:57 MainLogger:FirstSubLogger:SecondSubLogger] foo bar 2
0 commit comments