Skip to content

How to write v2.LogEntry Protobufs #1298

@KaoruDev

Description

@KaoruDev

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.
I'm trying to write logs in the shape of com.google.logging.v2.LogEntry. However, the #write expects com.google.logging.LogEntry.

Describe the solution you'd like
Reasonable options might be:

  1. an easy way to convert com.google.logging.v2.LogEntry into com.google.logging.LogEntry.
  2. overloaded #write method that accepts com.google.logging.v2.LogEntry.

Describe alternatives you've considered
I'm writing my own converter 😭

Additional context
Sorry, if this method already exists, could you please point me to the docs?

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions