node-loggerizer
v1.0.3
Published
Really small logger that allows to set layers of logging output such as: ERROR, WARNING, INFO, NOTICE, DEBUG and format it as [formatted-time]: LEVEL: text format
Downloads
3
Maintainers
Readme
node-loggerizer
Small and short logger, allows to manipulate with levels
Description
Allows to manipulate logging by levels. Here are only 5 levels such as: "ERROR","WARNING","INFO","NOTICE","DEBUG" associated with levels by numbers like: 0,1,2,3,4.
Means if "2" is defined - console logging will show ERROR,WARNINIG and INFO levels.
Usage
IT is really easy to use. Just create new loggerizer object
const Loggerizer = require('node-loggerizer');
const loggerizer = new Logger(4);
And use:
loggerizer.print("INFO","We are started here");
loggerizer.print("DEBUG","Hewston - We have a trouble");