Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 865a51d

Browse files
committed
📝 Update options section in readme
Related: #28
1 parent 234bd05 commit 865a51d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ Options override both default logger configuration and environment-specific conf
176176
- `disableStackdriverFormat` - if set to `false`, logger will add `severity` field to all log objects, so that log levels in Google Stackdriver work as expected. Defaults to `false`
177177
- `skip` - Function to be used in express middlewares for filtering request and response logs. If the function returns `true` for a given request, no message will be logged. No default value.
178178
- `config` - object, which will be passed to underlying logger object. Right now, underlying logger is [pino](https://github.com/pinojs/pino), so for available options see [pino API docs](https://github.com/pinojs/pino/blob/master/docs/API.md#pinooptions-stream)
179+
- `sentry` - `true` to enable without configuring or `<sentry dsn>` to enable and configure with dsn beforehand, `false` to disable (default)
180+
- `sentryLevel` - set minimum level to log to sentry (default `warn`)
179181

180182
## Default serializers
181183
`cosmas` defines some [pino serializers](https://github.com/pinojs/pino/blob/master/docs/API.md#constructor) on its own

0 commit comments

Comments
 (0)