Logo

GitLab

Sign in

Massimiliano Regis / nexus_cli

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • nexus_cli
  • node_modules
  • log4js
  • lib
  • debug.js
  • preparazione progetto per ampliamento
    30598995
    Tiziano Lambiase authored
    2016-09-18 20:03:52 +0200  
    Browse Code ยป
debug.js 301 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
"use strict";

module.exports = function(label) {
  var debug;

  if (process.env.NODE_DEBUG && /\blog4js\b/.test(process.env.NODE_DEBUG)) {
    debug = function(message) { 
      console.error('LOG4JS: (%s) %s', label, message); 
    };
  } else {
    debug = function() { };
  }

  return debug;
};