Skip to content

Commit

Permalink
[@types/pino] Document new config option (#35757)
Browse files Browse the repository at this point in the history
* Document new config option (implemented in pinojs/pino-pretty#67)

* Fix indentation to be consistent
  • Loading branch information
kibertoad authored and amcasey committed Jun 3, 2019
1 parent 12207c4 commit 001ee99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/pino/index.d.ts
Expand Up @@ -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`.
*/
Expand Down
1 change: 1 addition & 0 deletions types/pino/pino-tests.ts
Expand Up @@ -133,6 +133,7 @@ const pretty = pino({
errorProps: '',
levelFirst: false,
messageKey: 'msg',
timestampKey: "timestamp",
translateTime: 'UTC:h:MM:ss TT Z',
search: 'foo == `bar`'
}
Expand Down

0 comments on commit 001ee99

Please sign in to comment.