MCPcopy Create free account
hub / github.com/firebase/firebase-tools / log

Method log

src/emulator/types.ts:342–346  ·  view source on GitHub ↗

* We use a global boolean to know if all of our messages have been flushed, and the functions * emulator can wait on this variable to flip before exiting. This ensures that we never * miss a log message that has been queued but has not yet flushed.

()

Source from the content-addressed store, hash-verified

340 * miss a log message that has been queued but has not yet flushed.
341 */
342 log(): void {
343 const msg = `${this.toString()}\n`;
344 this.bufferMessage(msg);
345 this.flush();
346 }
347
348 private bufferMessage(msg: string): void {
349 EmulatorLog.LOG_BUFFER.push(msg);

Callers 15

firepit.jsFile · 0.45
SetupFirebaseToolsFunction · 0.45
debugFunction · 0.45
welcome.jsFile · 0.45
CheckFirebaseToolsFunction · 0.45
check.jsFile · 0.45
init.jsFile · 0.45
requestCallBackMethod · 0.45
fetchMOTDFunction · 0.45
formatFilesizeFunction · 0.45
registerMethod · 0.45

Calls 3

toStringMethod · 0.95
bufferMessageMethod · 0.95
flushMethod · 0.95

Tested by 1

speakFunction · 0.36