@types/pino
Advanced tools
Comparing version 6.3.5 to 6.3.6
@@ -542,2 +542,4 @@ // Type definitions for pino 6.3 | ||
type MessageFormatFunc = (log: LogDescriptor, messageKey: string, levelLabel: string) => string; | ||
interface PrettyOptions { | ||
@@ -565,4 +567,15 @@ /** | ||
* Format output of message, e.g. {level} - {pid} will output message: INFO - 1123 Default: `false`. | ||
* | ||
* @example | ||
* ```typescript | ||
* { | ||
* messageFormat: (log, messageKey) => { | ||
* const message = log[messageKey]; | ||
* if (log.requestId) return `[${log.requestId}] ${message}`; | ||
* return message; | ||
* } | ||
* } | ||
* ``` | ||
*/ | ||
messageFormat?: false | string; | ||
messageFormat?: false | string | MessageFormatFunc; | ||
/** | ||
@@ -569,0 +582,0 @@ * If set to true, will add color information to the formatted output message. Default: `false`. |
{ | ||
"name": "@types/pino", | ||
"version": "6.3.5", | ||
"version": "6.3.6", | ||
"description": "TypeScript definitions for pino", | ||
@@ -81,4 +81,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "3dc76939f0b62fba20e289e056da66c4e494c53a1f1427a8b428073b5989af23", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "85839c5eb4a9e7c41f247bb6efeb873f487c9d651a40932aefb143f2026dc75f", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 08 Jan 2021 04:47:07 GMT | ||
* Last updated: Thu, 18 Feb 2021 20:46:04 GMT | ||
* Dependencies: [@types/sonic-boom](https://npmjs.com/package/@types/sonic-boom), [@types/pino-std-serializers](https://npmjs.com/package/@types/pino-std-serializers), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42009
796