[@types/pino] Document new config option (#35757)

* Document new config option (implemented in https://github.com/pinojs/pino-pretty/pull/67)

* Fix indentation to be consistent
This commit is contained in:
Igor Savin 2019-06-04 01:36:08 +02:00 committed by Andrew Casey
parent 12207c4a9d
commit 001ee994e3
2 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,10 @@ declare namespace P {
* The key in the JSON object to use as the highlighted message. Default: "msg".
*/
messageKey?: string;
/**
* The key in the JSON object to use for timestamp display. Default: "time".
*/
timestampKey?: string;
/**
* If set to true, will add color information to the formatted output message. Default: `false`.
*/

View File

@ -133,6 +133,7 @@ const pretty = pino({
errorProps: '',
levelFirst: false,
messageKey: 'msg',
timestampKey: "timestamp",
translateTime: 'UTC:h:MM:ss TT Z',
search: 'foo == `bar`'
}