Skip to content

Commit

Permalink
#102 🐘 remove enabled flag for logger in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RiceWithMeat committed Dec 23, 2024
1 parent 3276961 commit 33d52f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,6 @@ You can log requests and responses using `log` function in any [interceptor](#in

`logger` parameter has the following optional properties

- `enabled` `boolean` draw log or not, `true` by default
- `tokenOptions` `LoggerTokenOptions` object map containing tokens to log. Keys is token names, values is boolean. `true` will add token into log, `false` will remove. If tokenOptions is not passed, following tokens will be logged
- Request
- type
Expand All @@ -684,7 +683,7 @@ You can log requests and responses using `log` function in any [interceptor](#in
- data
- `rewrite` `(tokenValues: Partial<LoggerTokenValues>) => void` function to customize default `console.dir(tokenValues, { depth: null })` appearance

`log` function returns object with logged token values or `null` if log was not `enabled`
`log` function returns object with logged token values

```javascript
/** @type {import('mock-config-server').MockServerConfig} */
Expand Down

0 comments on commit 33d52f5

Please sign in to comment.