Closed TommyDew42 closed 2 years ago
closes fastify/fastify#4027
YYYY-MM-dd HH:mm:ss.SSSTZ - <level> - <method> <route path> - <message>
The logs look like this:
The following unit tests are included:
messageFormat
logDescriptor
req
I believe without doing anything, we have already allowed the following usage:
fastify({ logger: { transport: 'one-line-logger' } })
It's because pino uses require.resolve('one-line-logger') to look for the path to main file of this package.
pino
require.resolve('one-line-logger')
npm run test
Also updated the PR description for the timezone and color!
@mcollina ops sorry pushed a commit about readme. 😓 can you help run check again?
closes fastify/fastify#4027
How does the log look like
The logs look like this:
Unit tests
The following unit tests are included:
messageFormat
logDescriptor
without thereq
objectlogDescriptor
with thereq
objectI believe without doing anything, we have already allowed the following usage:
It's because
pino
usesrequire.resolve('one-line-logger')
to look for the path to main file of this package.Checklist
npm run test