firebase-tools-ui
firebase-tools-ui copied to clipboard
Add option to send logs to GCP from Functions
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})