Console
10/22/22Less than 1 minute
Extensions to the global console object. See the globals module.
Table of contents
Methods
Methods
setLogFilePath
setLogFilePath(file: string): void
Adds console.setLogFilePath to set the log file path. After calling it, logs from scripts can be written to that file.
Example
"nodejs";
console.setLogFilePath('/sdcard/log.txt');
console.log("Hello");Parameters
file: Absolute path to the log file.
Returns
void
