I've figured out how to pretty-print the logs in fastify
:
const server = fastify({
logger: {
prettyPrint: __DEV__ && {
translateTime: 'h:MM:ss TT',
colorize: true,
ignore: 'pid,hostname'
},
},
})
But the time is in UTC. How can I get it in my local time or specify a timezone?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…