UNPKG

bugologger

Version:

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

53 lines (34 loc) 2.4 kB
# leekslazylogger [![npm](https://img.shields.io/npm/v/leekslazylogger/latest?style=flat-square)](https://www.npmjs.com/package/leekslazylogger) [![GitHub issues](https://img.shields.io/github/issues/eartharoid/leekslazylogger?style=flat-square)](https://github.com/eartharoid/leekslazylogger/issues) ![Tests](https://img.shields.io/github/workflow/status/eartharoid/deep-merge/Test?label=Test&logo=github&style=flat-square) [![GitHub license](https://img.shields.io/github/license/eartharoid/leekslazylogger?style=flat-square)](https://github.com/eartharoid/leekslazylogger/blob/master/LICENSE) ![Codacy grade](https://img.shields.io/codacy/grade/15dc38c312c3430d8ed02c58edb2e8bd?logo=codacy&style=flat-square) [![Discord support server](https://discordapp.com/api/guilds/451745464480432129/embed.png?style=shield)](https://discord.gg/pXc9vyC) ## 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](https://logger.eartharoid.me/customisation) - 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](https://github.com/davidjcralph/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](https://i.imgur.com/wSrwEJD.png) ### An example of custom log level formats ![Custom log level formats](https://i.imgur.com/DNOkj7Y.png) ## Getting Started For installation and usage instructions/examples, see [Getting Started](https://logger.eartharoid.me/getting-started). ## Support **[Go to the docs](https://logger.eartharoid.me)**, or ask for help in [#general-support](https://discordapp.com/channels/451745464480432129/475351519516950548) on [Discord](https://discord.gg/pXc9vyC). [![Discord](https://discordapp.com/api/guilds/451745464480432129/widget.png?style=banner4)](https://discord.gg/pXc9vyC) ## Donate [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/eartharoid)