Alexandre Storelli 439d22ef47 add README
2018-04-19 12:42:24 +02:00
2018-04-13 11:00:35 +02:00
2018-04-13 16:39:01 +02:00
2018-04-13 16:37:47 +02:00
2018-04-13 11:00:35 +02:00
2018-04-13 16:37:47 +02:00
2018-04-19 12:42:24 +02:00

log helper

Features

  • log formatting, with date, log levels, module name and colors
  • log saving with daily file rotate

Installation

Add the line "abr-log": "git+https://git@github.com/dest4/log.git", to your package.json. Then npm install.

Usage

> const { log } = require("abr-log")("my module name");
> log.info("my name is foo");
[2018-04-19T10:23:08.663Z] info my module name: 	my name is foo

and a new line has been added in the subfolder log/04-19. log.error messages are also written to log/error.log.

Available loglevels

  • log.info
  • log.warn
  • log.error
  • log.debug

Licence

MIT

S
Description
Log helper
Readme MIT 51 KiB
Languages
JavaScript 100%