MCPcopy
hub / github.com/di-sukharev/opencommit / createLogger

Function createLogger

out/cli.cjs:75368–75379  ·  view source on GitHub ↗
(parent, level)

Source from the content-addressed store, hash-verified

75366 verbose: createLogger(clientRootLogger, "verbose")
75367 };
75368}
75369function patchLogMethod(parent, child) {
75370 child.log = (...args) => {
75371 parent.log(...args);
75372 };
75373}
75374function createLogger(parent, level) {
75375 const logger3 = Object.assign(parent.extend(level), {
75376 level
75377 });
75378 patchLogMethod(parent, logger3);
75379 if (shouldEnable(logger3)) {
75380 const enabledNamespaces2 = debug_default.disable();
75381 debug_default.enable(enabledNamespaces2 + "," + logger3.namespace);
75382 }

Callers 1

createClientLoggerFunction · 0.85

Calls 4

patchLogMethodFunction · 0.85
shouldEnableFunction · 0.85
extendMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…