yarn add pino-pretty
const server = Fastify({
logger: {
level: 'debug',
prettyPrint: {
translateTime: 'SYS:HH:MM:ss.l',
ignore: 'hostname,pid',
singleLine: true,
} as any,
},
})
Created By 三三好记性不如烂 Wiki - 人工大脑CC BY-SA or CC BY-NC-SA 4.0