@@ -157,20 +157,19 @@ module.exports = {
157157 * Note you cannot pass functions to pino-princess when using it as a pino v7 transport. These need to be configured in a pino-princess.config.js file.
158158 */
159159 format: {
160- formatLevel : (level ) => {},
161- formatLoadTime : (timestamp ) => {},
162- formatTime : (date ) => {},
163- formatName : (name ) => {},
164- formatMessage : (message ) => {},
165- formatBundleSize : (bundleSize ) => {},
166- formatNs : (ns ) => {},
167- formatExtraFields : (extraFields ) => {},
168- formatStack : (stack ) => {},
169- formatUrl : (url ) => {},
170- formatStatusCode : (statusCode ) => {},
171- formatErrorProp : (err ) => {},
172- formatMethod : (method ) => {},
173- formatId : (id ) => {},
160+ name : (name ) => {},
161+ time : (time , timeFormat ) => {},
162+ level : (level ) => {},
163+ ' req.id ' : (id ) => {},
164+ ' req.method ' : (method ) => {},
165+ ' res.statusCode ' : (statusCode ) => {},
166+ ' req.url ' : (url ) => {},
167+ [messageKey]: (msg ) => {},
168+ responseTime : (responseTime ) => {},
169+ extraFields : (extraFieldsObj , {theme}) => {},
170+ [errorKey]: (err ) => {},
171+ [` ${ errorKey} .stack` ]: (errStack ) => {},
174172 },
173+
175174};
176175```
0 commit comments