MCPcopy
hub / github.com/mongodb/node-mongodb-native / log

Function log

test/tools/fixtures/heap_resource_script.in.js:23–31  ·  test/tools/fixtures/heap_resource_script.in.js::log
(...args)

Source from the content-addressed store, hash-verified

21const MB = (2 ** 10) ** 2;
22
23const log = (...args) => {
24 const payload =
25 args
26 .map(item =>
27 typeof item === class="st">'string' ? item : inspect(item, { depth: Infinity, breakLength: Infinity })
28 )
29 .join(class="st">', ') + class="st">'\n';
30 process.stdout.write(class="st">'(subprocess): ' + payload);
31};
32
33async function main() {
34 log(class="st">'starting execution');

Callers 1

mainFunction · 0.70

Calls 3

writeMethod · 0.65
inspectFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected