Skip to content

Commit 51070aa

Browse files
authored
Merge pull request #163 from fullstack-build/development
Update README
2 parents 2334867 + e3783cb commit 51070aa

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ const hiddenLogger = new Logger({type: "hidden"});
275275

276276
#### Name
277277

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.
280281

281282
Simple name example:
282283
```typescript
@@ -296,7 +297,7 @@ secondSubLogger.silly("foo bar 2");
296297
```
297298

298299
Output:
299-
```shell
300+
```bash
300301
2022-11-17 10:45:47.705 SILLY [/examples/nodejs/index2.ts:51 MainLogger] foo bar
301302
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:54 MainLogger:FirstSubLogger] foo bar 1
302303
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:57 MainLogger:FirstSubLogger:SecondSubLogger] foo bar 2

docs/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ const hiddenLogger = new Logger({type: "hidden"});
275275

276276
#### Name
277277

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.
280281

281282
Simple name example:
282283
```typescript
@@ -296,7 +297,7 @@ secondSubLogger.silly("foo bar 2");
296297
```
297298

298299
Output:
299-
```shell
300+
```bash
300301
2022-11-17 10:45:47.705 SILLY [/examples/nodejs/index2.ts:51 MainLogger] foo bar
301302
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:54 MainLogger:FirstSubLogger] foo bar 1
302303
2022-11-17 10:45:47.706 SILLY [/examples/nodejs/index2.ts:57 MainLogger:FirstSubLogger:SecondSubLogger] foo bar 2

0 commit comments

Comments
 (0)