log.js 190 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 let logging = false; exports.logging = logging; exports.setLogging = (_logging) => { logging = _logging; }; exports.log = (...args) => (logging ? console.log.apply(this, args) : null);