firebase / firebase/firebase-tools-ui
Add option to send logs to GCP from Functions
Open
- Dominant language
- TypeScript
- Stars
- 291
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
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})
```
Contributor guide
Assessment
This issue has not been assessed yet.