@marketto/js-logger
v1.0.1
Published
Node.js Log utility
Downloads
18
Readme
jsLogger
Node.js logger utility
Installation
Project dependency
npm install @marketto/js-logger --save
Getting Started
New Instance
const { Logger } = require("@marketto/js-logger");
const loggerConfig = {
error: true,
info: true,
debug: false,
warn: true
};
const logger = new Logger(loggerConfig);
Global
const logger = require("@marketto/js-logger").global();
logger.config = {
error: true,
info: true,
debug: false,
warn: true
};