pinojs / pino-pretty

🌲Basic prettifier for Pino log lines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typings missing `minimumLevel`

lewisakura opened this issue · comments

minimumLevel is a valid option here:

const minimumLevel = opts.minimumLevel

But it's not available in the typings:

Which I assume is because it isn't part of the default options set, so when the typings were written it was missed:

pino-pretty/index.js

Lines 30 to 48 in e793e64

const defaultOptions = {
colorize: isColorSupported,
crlf: false,
errorLikeObjectKeys: ERROR_LIKE_KEYS,
errorProps: '',
customLevels: null,
customColors: null,
useOnlyCustomProps: true,
levelFirst: false,
messageKey: MESSAGE_KEY,
messageFormat: false,
timestampKey: TIMESTAMP_KEY,
translateTime: false,
useMetadata: false,
outputStream: process.stdout,
customPrettifiers: {},
hideObject: false,
singleLine: false
}

(psst... what is the default minimum level?)

Would you be open to send a PR for this? It would also need a tsd test.

Yep, just need to know what the default is for proper documentation.

Edt: Just seems to be trace. I'll PR this now.