MCPcopy Create free account
hub / github.com/DemonMartin/node-camoufox / createDebugLogger

Function createDebugLogger

src/CamoufoxServer.js:12–18  ·  view source on GitHub ↗
(enabled = false)

Source from the content-addressed store, hash-verified

10}
11
12function createDebugLogger(enabled = false) {
13 return (msg) => {
14 if (enabled) {
15 console.log(`[${new Date().toISOString()}] ${msg}`);
16 }
17 };
18}
19
20/**
21 * @typedef {Object} ProxyConfig

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected