hole-log

0.0.2-rev1 • Public • Published

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'

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i hole-log

    Weekly Downloads

    5

    Version

    0.0.2-rev1

    License

    MIT

    Unpacked Size

    26.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • alexlndn