1.0.1 • Published 7 years ago

truelogger v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

TrueLogger

A lightweight logger with support for custom messages and timestamps.

How to use

First you need to create a new instance of the logger with a moment timestamp format.

const logger = new TrueLogger('HH:mm:ss');

To send a log message use one of these methods

CategoryTagTag Color
infoIGrey
warnWYellow
errorERed
debugDBlue

The log methods also use the spread operator so you can do:

logger.info('Spread','operator');

Packages this project uses.

I used moment and chalk for this project. The links are below.

Moment

Chalk