firebase-tools-ui icon indicating copy to clipboard operation
firebase-tools-ui copied to clipboard

Add option to send logs to GCP from Functions

Open exo-pla-net opened this issue 4 months ago • 0 comments

Cloud Error Reporting has an option to fire off live reports, even in the emulator:

import {ErrorReporting} from '@google-cloud/error-reporting';
new ErrorReporting(
reportMode: 'always',
)

It would be nice if you could do so using Logger, as well, so you can test your project-wide error handling.

import {
  error as errorLog,
} from "firebase-functions/logger";
errorLog("I'm live!", {bypassEmulator: true})

exo-pla-net avatar Apr 12 '24 18:04 exo-pla-net