Skip to content

TrueBoxGuy/TrueLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Category Tag Tag Color
info [I] Grey
warn [W] Yellow
error [E] Red
debug [D] Blue

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

About

An advanced logger

Resources

License

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors