Closed mcollina closed 2 months ago
Do you have a code example on how you would use it? How many colors?
Maybe check out pino-colada and pino-pretty for inspiration?
I've been trying to have one-line-logger be colored by default, but I couldn't make it work.
What I would expect it's something slightly different and "nicer" to read.
This is the output of pino-pretty:
I would expect this module to retain the color of the level.
This is with the default settings:
However I need to force a colorize: true
option to get it to where it should be:
const fastify = require('fastify')({
logger: {
transport: {
target: './index.js',
options: {
colorize: true,
}
}
}
})
There should not be a need to foce colorize: true
.
cc @synapse @simoneb
@mcollina @simoneb create a new PR here #42 that enables colors automatically.
As titled, it would be awesome if this transport added colors!