Skip to content

Commit

Permalink
Mention possibility to set log level for profiling (#1407)
Browse files Browse the repository at this point in the history
* Mention possibility to set log level for profiling

I found out that it is indeed possible to set the log level for profiling logs by supplying an object with a `level` property. This should be mentioned in the docs.

* Update README.md
  • Loading branch information
deyhle authored and DABH committed Aug 27, 2018
1 parent ba2fcaf commit bdb9f2b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,12 @@ on:
}, 1000);
```

All profile messages are set to 'info' level by default and both message and
metadata are optional. There are no plans in the Roadmap to make this
configurable, but we are open to suggestions through new issues!
All profile messages are set to 'info' level by default, and both message and
metadata are optional. For individual profile messages, you can override the default log level by supplying a metadata object with a `level` property:

```js
logger.profile('test', { level: 'debug' });
```

## Querying Logs

Expand Down

0 comments on commit bdb9f2b

Please sign in to comment.