log-console-log
v1.0.2
Published
Enable and disable logs as required by just setting environment variable true or false
Downloads
7
Maintainers
Readme
Console Log (Enable/Disable)
Enable and disable console logs by setting environment variable "log" as true or false.
Installation
Use the package manager NPM to install log-console-log.
npm install log-console-log
Enable Logs
process.env.log = true;
Disable Logs
process.env.log = false;
Usage
process.env.log = true;
var print = require('log-console-log');
print.log("What you want to print, could be object or string whatever you want")