Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jun 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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