chore: add separate pino-pretty config file for debugging

This commit is contained in:
Christian Benincasa
2025-12-17 08:10:58 -05:00
parent eddf788c8c
commit 7965119505

View File

@@ -0,0 +1,30 @@
const conf = {
// minimumLevel: logLevel === 'silent' ? undefined : logLevel,
translateTime: "SYS:yyyy-mm-dd'T'HH:MM:ss.l'Z'",
singleLine: true,
ignore: 'pid,hostname',
customLevels: {
http: 25,
},
customColors: {
http: 'blue',
},
useOnlyCustomProps: false,
messageFormat: (log, messageKey, _, { colors }) => {
return `${colors.white(log[messageKey])}`;
},
customPrettifiers: {
time: (t) => {
return t;
},
level: (_level, _key, _log, { labelColorized }) => {
return `[${labelColorized.toLowerCase()}]`;
},
caller: (caller, _key, _log, { colors }) => {
return colors.green(caller);
},
},
colorize: true,
};
module.exports = conf;