Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const logFn = (tag: string, message: string, ...args: any[]) => {
message = TextUtils.formatMessage(message, ...args);
fs.appendFileSync(logFile, tag + " " + message + "\n");
};
return {