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

Function log

test/tools/fixtures/heap_resource_script.in.js:23–31  ·  view source on GitHub ↗
(...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 === 'string' ? item : inspect(item, { depth: Infinity, breakLength: Infinity })
28 )
29 .join(', ') + '\n';
30 process.stdout.write('(subprocess): ' + payload);
31};
32
33async function main() {
34 log('starting execution');

Callers 1

mainFunction · 0.70

Calls 3

writeMethod · 0.65
inspectFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected