UNPKG

leekslazylogger

Version:

An easy-to-use and lightweight logger for Node.js with colours, timestamps, and files.

54 lines (33 loc) 2.19 kB
# leekslazylogger [![Version](https://img.shields.io/npm/v/leekslazylogger/latest?style=flat-square)](https://www.npmjs.com/package/leekslazylogger) ![Tests](https://img.shields.io/github/workflow/status/eartharoid/deep-merge/Test?label=Test&logo=github&style=flat-square) [![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://lnk.earth/discord) ## About leekslazylogger is an easy-to-use and lightweight logger for Node.js with colours, timestamps, and files. ## Features Some of the things that make leekslazylogger awesome: - Timestamps - 2 built-in transports - Console - Uses [leeks.js](https://github.com/davidcralph/leeks.js) for colours/styles - Customisable format - File - Automatic clean-up - Easy to create your own transport (such as a HTTP transport) - [Highly customisable](https://logger.eartharoid.me/customisation) ## Screenshots These screenshots show the default formats. You can make it completely different if you want. ### Console ![The default log levels](https://static.eartharoid.me/sharex/21/09/WindowsTerminal_Q4pR1Pygdy.png) ### File ![Log file](https://static.eartharoid.me/sharex/21/09/Code_wKKxpwAcCb.png) You can change or remove the header in log files. ## 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://lnk.earth/discord). [![Discord](https://discordapp.com/api/guilds/451745464480432129/widget.png?style=banner4)](https://lnk.earth/discord) ## Donate [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/eartharoid)