0.0.2-rev1 • Published 3 years ago
hole-log v0.0.2-rev1
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:
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'