Skip to content

Commit

Permalink
docs(): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelvesavuori committed Apr 7, 2023
1 parent f8c0e5f commit 7236c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ If you want a one-time root-level enrichment, you can do:
const logger = MikroLog.start();
logger.enrichNext({ someId: '123456789abcdefghi' });
logger.info('Ping!'); // Enrichment is present on log
logger.info('Ping!'); // Enrichment is longer present
logger.info('Ping!'); // Enrichment is no longer present
```

This works just as well on nested object:
Expand All @@ -251,7 +251,7 @@ This works just as well on nested object:
const logger = MikroLog.start();
logger.enrichNext({ myObject: { myValue: 'Something here', otherValue: 'Something else' } });
logger.info('Ping!'); // Enrichment is present on log
logger.info('Ping!'); // Enrichment is longer present
logger.info('Ping!'); // Enrichment is no longer present
```

Note that only object input is allowed for this method.
Expand Down
2 changes: 1 addition & 1 deletion src/entities/MikroLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class MikroLog {
* const logger = MikroLog.start();
* logger.enrichNext({ someId: '123456789abcdefghi' });
* logger.info('Ping!'); // Enrichment is present on log
* logger.info('Ping!'); // Enrichment is longer present
* logger.info('Ping!'); // Enrichment is no longer present
* ```
*
* You can also use nested objects:
Expand Down

0 comments on commit 7236c22

Please sign in to comment.