1.0.2 • Published 11 months ago

sigma-logger v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Logger

Description

Easy to use logger for nodejs applications.

Takes a message and writes it to a datestamped log file mm-dd-yyyy-log.txt with a time stamp HH-MM-SS AM/PM.

Usage

// this is an ES6 module
import Logger from 'logger';
Logger.log('Hello World');

That is it! The log file will be created a logs directory that is created at the root of the project.

Options

Logger.omitConsole = true; // default: false
Logger.log('Hello World'); // will not log to console
logger.omitTime = true; // default: false
Logger.log('Hello World'); // will not put the time stamp in the log file.

This class uses static methods so you do not need to instantiate it.

This module is OS-agnostic and will work on Windows, Mac, and Linux.

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago