From 3054284b191114185f1936ba7caf2aecc54c7e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0mol=C3=ADk?= Date: Mon, 9 Dec 2019 10:41:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20options=20section=20in?= =?UTF-8?q?=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related: #28 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d63931d..1d61bc6 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,8 @@ Options override both default logger configuration and environment-specific conf - `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` - `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. - `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) +- `sentry` - `true` to enable without configuring or `` to enable and configure with dsn beforehand, `false` to disable (default) +- `sentryLevel` - set minimum level to log to sentry (default `warn`) ## Default serializers `cosmas` defines some [pino serializers](https://github.com/pinojs/pino/blob/master/docs/API.md#constructor) on its own