mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix(pino): Add missing params in PrettyOptions (#42123)
* fix(pino): Add missing params in PrettyOptions * Update types/pino/index.d.ts Co-Authored-By: Adam Vigneaux <adam@adamvig.com> Co-authored-by: Adam Vigneaux <adam@adamvig.com>
This commit is contained in:
parent
b1f0045f65
commit
e3b0532870
5
types/pino/index.d.ts
vendored
5
types/pino/index.d.ts
vendored
@ -11,6 +11,7 @@
|
||||
// Cory Donkin <https://github.com/Cooryd>
|
||||
// Adam Vigneaux <https://github.com/AdamVig>
|
||||
// Austin Beer <https://github.com/austin-beer>
|
||||
// Michel Nemnom <https://github.com/Pegase745>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
@ -461,6 +462,10 @@ declare namespace P {
|
||||
* The key in the JSON object to use for timestamp display. Default: "time".
|
||||
*/
|
||||
timestampKey?: string;
|
||||
/**
|
||||
* Format output of message, e.g. {level} - {pid} will output message: INFO - 1123 Default: `false`.
|
||||
*/
|
||||
messageFormat?: false | string;
|
||||
/**
|
||||
* If set to true, will add color information to the formatted output message. Default: `false`.
|
||||
*/
|
||||
|
||||
@ -165,9 +165,11 @@ const pretty = pino({
|
||||
crlf: false,
|
||||
errorLikeObjectKeys: ['err', 'error'],
|
||||
errorProps: '',
|
||||
messageFormat: false,
|
||||
ignore: '',
|
||||
levelFirst: false,
|
||||
messageKey: 'msg',
|
||||
timestampKey: "timestamp",
|
||||
timestampKey: 'timestamp',
|
||||
translateTime: 'UTC:h:MM:ss TT Z',
|
||||
search: 'foo == `bar`'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user