mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Include new options introduced in pino 5.6.0.
Related changes in pinojs/pino - https://github.com/pinojs/pino/pull/515
This commit is contained in:
Vendored
+19
@@ -150,6 +150,17 @@ declare namespace P {
|
||||
* Outputs the level as a string instead of integer. Default: `false`.
|
||||
*/
|
||||
useLevelLabels?: boolean;
|
||||
/**
|
||||
* Use this option to define additional logging levels.
|
||||
* The keys of the object correspond the namespace of the log level, and the values should be the numerical value of the level.
|
||||
*/
|
||||
customLevels?: { [key: string]: number };
|
||||
/**
|
||||
* Use this option to only use defined `customLevels` and omit Pino's levels.
|
||||
* Logger's default `level` must be changed to a value in `customLevels` in order to use `useOnlyCustomLevels`
|
||||
* Warning: this option may not be supported by downstream transports.
|
||||
*/
|
||||
useOnlyCustomLevels?: boolean;
|
||||
/**
|
||||
* When defining a custom log level via level, set to an integer value to define the new level. Default: `undefined`.
|
||||
*/
|
||||
@@ -277,6 +288,14 @@ declare namespace P {
|
||||
* Outputs the level as a string instead of integer.
|
||||
*/
|
||||
useLevelLabels: boolean;
|
||||
/**
|
||||
* Define additional logging levels.
|
||||
*/
|
||||
customLevels: { [key: string]: number };
|
||||
/**
|
||||
* Use only defined `customLevels` and omit Pino's levels.
|
||||
*/
|
||||
useOnlyCustomLevels: boolean;
|
||||
/**
|
||||
* Returns the integer value for the logger instance's logging level.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user