@andy9879/log-file
v1.0.3
Published
## Description
Downloads
7
Readme
LogFile
Description
This package adds a log function that takes an event name and non-recursive javascript object and appends them to a log file with the date of event.
Usage
let logFile = require("@andy9879/log-file");
//Compress old logs with 24H interval
let logInterval = logFile.setupCompressing();
//Stop log interval
clearInterval(logInterval);
//Compress old logs with out recurring interval
logFile.setupCompressing(false);
//Make log
logFile.log("Name of log", obj);