This package has been deprecated

Author message:

Use leekslazylogger@4 with a fastify onResponse hook

leekslazylogger-fastify

0.1.1 • Public • Published

leekslazylogger-fastify

npm GitHub issues GitHub stars GitHub forks GitHub license Codacy grade Discord support server

About

leekslazylogger-fastify is a logger plugin for fastify.

Features

  • Colours :)
  • Status code, route, and time in ms
  • Placeholders

Getting Started

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
});

Support

Go to the docs, or ask for help in #general-support on Discord.

Discord

Donate

ko-fi

Package Sidebar

Install

npm i leekslazylogger-fastify

Weekly Downloads

9

Version

0.1.1

License

MIT

Unpacked Size

6.89 kB

Total Files

4

Last publish

Collaborators

  • eartharoid