You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My program perfectly send logs to Logs Explorer with Google's com.google.cloud.logging library. However, when I want to set both textPayload and jsonPayload, I can't.
If just JsonPayload is set, then I'm unable to see log's message on preview. It just shows the URL that my Cloud Function works.
However, in com.google.logging.v2.LogEntry model, I can set both textPayload and jsonPayload. In this way I cannot send logs to server because of the com.google.cloud.logging.Logging instance's write method does not accept this type of LogEntry
Steps to reproduce
Write a simple LogEntry build statement with JsonPayload or TextPayload (cannot do both, that's the issue)
Run logging.write(Collections.singleton(logEntry)); and see it display textpayload's content for preview on Logs Explorer but if you set JsonPayload, it just dont.
My program perfectly send logs to Logs Explorer with Google's
com.google.cloud.logging
library. However, when I want to set both textPayload and jsonPayload, I can't.If just JsonPayload is set, then I'm unable to see log's message on preview. It just shows the URL that my Cloud Function works.
However, in com.google.logging.v2.LogEntry model, I can set both textPayload and jsonPayload. In this way I cannot send logs to server because of the
com.google.cloud.logging.Logging
instance'swrite
method does not accept this type of LogEntrySteps to reproduce
logging.write(Collections.singleton(logEntry));
and see it display textpayload's content for preview on Logs Explorer but if you set JsonPayload, it just dont.Code example
The text was updated successfully, but these errors were encountered: