Skip to content

Commit

Permalink
chore: fix propMaxLength attribute doc
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdaiego committed Sep 11, 2019
1 parent 6acb4e9 commit befd8c9
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 @@ -108,8 +108,8 @@ const { httpLogger } = escriba({
onlyBody: false
}
],
maxPropLength: {
body: 2048,
propMaxLength: {
body: 4096,
url: 1024
}
}
Expand All @@ -133,7 +133,7 @@ logger.info('some controller information', { id: req.id })

Also it's possible to skip logs or only the body property through skipRules, in the example we are skiping logs from route `/status` for `all methods` and skiping the `body` property from routes that ends with `.csv` or `.xlsx`.

The `maxPropLength` attribute is responsible to limit the number of characters for certain properties if they exist within `propsTolog` definition.
The `propMaxLength` attribute is responsible to limit the number of characters for certain properties if they exist within `propsTolog` definition.

## Masks

Expand Down

0 comments on commit befd8c9

Please sign in to comment.