Fastify pino pretty 日志格式

yarn add pino-pretty
const server = Fastify({
  logger: {
    level: 'debug',
    prettyPrint: {
      translateTime: 'SYS:HH:MM:ss.l',
      ignore: 'hostname,pid',
      singleLine: true,
    } as any,
  },
})
本页面最后修改于 2022-6-1,距今约 1185

Created By 三三好记性不如烂 Wiki - 人工大脑CC BY-SA or CC BY-NC-SA 4.0

Fastify pino pretty 日志格式 - 人工大脑