aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/log4js/lib/debug.js
blob: e3e65816d927385cab751f5ce0132debc3f57b83 (plain)
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;
};