-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
💬 Question here
Previously this was the way to instantiate a synchronous pino-pretty logger (which is very convenient for tests):
import pretty from 'pino-pretty'
const logger = pino(
pretty({
sync: true,
minimumLevel: appConfig.logLevel as Level,
colorize: true,
translateTime: 'SYS:standard',
ignore: 'hostname,pid',
}),
)
const app = fastify({
logger
})Unfortunately, this no longer works, because fastify 5 only supports logger configuration but not preinstantiated logger. How does one use pino-pretty while still respecting the sync attribute now?
Your Environment
- node version: 20
- fastify version: >=5.0.0
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested