Logging: Exceptions logged in google-cloud-logging-logback do not show in Error Reporting Console #28
Labels
api: logging
Issues related to the googleapis/java-logging API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I am using Logging and I send logs using google-cloud-logging-logback. I want to use Error Reporting from an application that will run outside of Google Cloud. According to official documentation: https://cloud.google.com/error-reporting/docs/setup/java
However this is not true and exceptions do not show in Error Reporting. They are correctly logged and can be seen in log viewer.
Environment details
Steps to reproduce
Code example
Code examples below send a log to Google Logging and can be seen in viewer but not found in Error Reporting. The documentation does not show how exceptions should be logged so this is what I did:
Any additional information below
Using logback version 1.2.3
I think the cause is the fact that according to Error Reporting documentation: https://cloud.google.com/error-reporting/docs/formatting-error-messages a field serviceContext is a required one, there is no way to include it using google-cloud-logging-logback enhancers.
The text was updated successfully, but these errors were encountered: