MCPcopy Index your code
hub / github.com/nodejs/node / logger

Function logger

lib/internal/util/debuglog.js:120–128  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

118 return enabled;
119 };
120 const logger = (...args) => {
121 // Improve performance when debug is disabled, avoid calling `new SafeArrayIterator(args)`
122 if (enabled === false) return;
123 switch (args.length) {
124 case 1: return debug(args[0]);
125 case 2: return debug(args[0], args[1]);
126 default: return debug(...new SafeArrayIterator(args));
127 }
128 };
129 ObjectDefineProperty(logger, 'enabled', {
130 __proto__: null,
131 get() {

Callers

nothing calls this directly

Calls 1

debugFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…