MCPcopy Index your code
hub / github.com/callstack/repack / flushFileLogs

Method flushFileLogs

packages/repack/src/Reporter.ts:144–149  ·  view source on GitHub ↗

* Flush all buffered logs to a file provided that file * reporting was enabled with enableFileLogging.

()

Source from the content-addressed store, hash-verified

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

Callers 1

applyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected