An open API service indexing awesome lists of open source software.

https://github.com/eartharoid/leekslazylogger

An easy-to-use and lightweight Node.JS logger with file support, colours, and timestamps.
https://github.com/eartharoid/leekslazylogger

colour console leeks logger nodejs terminal

Last synced: 7 months ago
JSON representation

An easy-to-use and lightweight Node.JS logger with file support, colours, and timestamps.

Awesome Lists containing this project

README

          

# 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)