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

Function log

test/tools/fixtures/process_resource_script.in.js:103–107  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

101
102// A log function for debugging
103function log(message) {
104 // remove outer parentheses for easier parsing
105 const messageToLog = JSON.stringify(message) + ' \n';
106 fs.writeFileSync(logFile, messageToLog, { flag: 'a' });
107}
108
109async function main() {
110 originalReport = process.report.getReport().libuv;

Callers 2

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected