0.0.2-rev1 • Published 3 years ago

hole-log v0.0.2-rev1

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

HOLE-LOG

A simple node logger with 3 channels (default, warn and error)

Installation

npm i hole-log

Usage

  • Without config (defaults to 'logs' folder):

    const holeLog = require('hole-log')();
  • Configuring:

    const holeLog = require('hole-log')({ folder: 'my_logs' });
holeLog.log("a simple text");
holeLog.warn("warning");
holeLog.error("this is an error");

Results:

npm.io

What Hole-Log do?

Hole-Log will generate a .log file inside the configuration folder for each day, with the format 'logfile__YYYY-MM-DD_HH-mm-ss-SSS.log'

0.0.2-rev1

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago

0.0.0

4 years ago