UNPKG

in-app-purchase-iec-develop

Version:

In-App-Purchase validation and subscription management for iOS, Android, Amazon, and Windows

22 lines (17 loc) 458 B
'use strict'; /* eslint no-console: "off" */ var enabled = false; module.exports.setup = function (config) { enabled = (config && config.verbose === true) ? true : false; }; module.exports.log = function () { if (!enabled) { return; } var logs = []; logs.push('[' + Date.now() + '][VERBOSE]'); for (var i in arguments) { logs.push(arguments[i]); } console.log.apply(console, logs); };