Skip to content

leekslazylogger

npm GitHub issues Tests GitHub license Codacy grade Discord support server

About

leekslazylogger is an easy-to-use and lightweight Node.JS logger with colours & styles, log files, and timestamps.

Features

Some of the things that make leekslazylogger awesome:

  • Highly customisable
  • 8 default log levels and ability to add more or modify the defaults
  • Extensions for popular frameworks (including express.js and fastify)
  • Uses leeks.js (supports RGB and HEX)
  • Short codes for fast inline colours and styles (like Minecraft!)
  • Debug mode (ignores debug messages unless told not to)
  • Custom timestamp formats
  • Log files
  • Automatically cleans-up old logs (optional)
  • Strips colour if it's not supported in the environment
  • Cross-platform

Screenshots

The default log levels

The default log levels

An example of custom log level formats

Custom log level formats

Getting Started

For installation and usage instructions/examples, see Getting Started.

Support

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

Discord

ko-fi


Last update: May 12, 2021