/istorm_logger

Logger for NodeJs

Primary LanguageJavaScript

Logger for NodeJs

Provides simple wrapper above console.log with abolity to pretty log strings with dates into file

Usage

Init

let Logger = require('istorm_logger').init('i18z_backend.log','debug');

First parameter - log file name (folder logs will be created in app directory) Second parameter - if set to 'debug' Logger.debug() will be logged

Calls

Logger.success(...messages)
Logger.err(...messages)
Logger.warn(...messages)
Logger.dbg(...messages)
Logger.log(...messages)

Examples

console

logfile