* Flush all buffered logs to a file provided that file * reporting was enabled with enableFileLogging.
()
| 142 | * reporting was enabled with {@link enableFileLogging}. |
| 143 | */ |
| 144 | flushFileLogs() { |
| 145 | if (this.outputFilename) { |
| 146 | fs.writeFileSync(this.outputFilename, this.fileLogBuffer.join('\n')); |
| 147 | this.fileLogBuffer = []; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Process new log entry and report it to terminal and file if file reporting was enabled with |