Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to send logs to GCP from Functions #1028

Open
exo-pla-net opened this issue Apr 12, 2024 · 0 comments
Open

Add option to send logs to GCP from Functions #1028

exo-pla-net opened this issue Apr 12, 2024 · 0 comments

Comments

@exo-pla-net
Copy link

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})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant