Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
olafbuitelaar authored Jul 26, 2023
1 parent 73165ec commit 076076d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ Following settings are available for styling:
- `prettyInspectOptions`: <a href="https://nodejs.org/api/util.html#utilinspectobject-options" target="_blank">Available options</a>

### Customizing template tokens
It's possible to add user defined tokes, by overwrting the `addPlaceholders` in the `settings.overwrite`. this callback allows to add or overwrite tokens in the `placeholderValues`.
for example, to add the token: {{custom}};
It's possible to add user defined tokes, by overwriting the `addPlaceholders` in the `settings.overwrite`. this callback allows to add or overwrite tokens in the `placeholderValues`.
for example, to add the token: `{{custom}}`;
```javascript
const logger = new Logger({
type: "pretty",
Expand All @@ -467,7 +467,7 @@ Following settings are available for styling:
},
});
```
this would yield in the token {{custom}} being replaced with "test"
this would yield in the token `{{custom}}` being replaced with `"test"`

- **Styling:**
- `stylePrettyLogs`: defines whether logs should be styled and colorized
Expand Down

0 comments on commit 076076d

Please sign in to comment.