leekslazylogger-fastify is a logger plugin for fastify.
- Colours :)
- Status code, route, and time in ms
- Placeholders
Click here to go the docs for customisation instructions.
const FastifyLogger = require('leekslazylogger-fastify');
const log = new FastifyLogger();
// require fastify
const fastify = require('fastify')();
// use logger plugin
fastify.register(log.fastify());
// or
fastify.register(log.fastify(), {
// options
});
Go to the docs, or ask for help in #general-support on Discord.