Skip to content

Commit bdb9f2b

Browse files
deyhleDABH
authored andcommitted
Mention possibility to set log level for profiling (#1407)
* 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
1 parent ba2fcaf commit bdb9f2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,12 @@ on:
821821
}, 1000);
822822
```
823823

824-
All profile messages are set to 'info' level by default and both message and
825-
metadata are optional. There are no plans in the Roadmap to make this
826-
configurable, but we are open to suggestions through new issues!
824+
All profile messages are set to 'info' level by default, and both message and
825+
metadata are optional. For individual profile messages, you can override the default log level by supplying a metadata object with a `level` property:
826+
827+
```js
828+
logger.profile('test', { level: 'debug' });
829+
```
827830

828831
## Querying Logs
829832

0 commit comments

Comments
 (0)