googleapis / java-logging-logback

Apache License 2.0
42 stars 29 forks source link

JsonPayload customization #1340

Open gtassone opened 2 months ago

gtassone commented 2 months ago

We have a requirement to include custom fields in the Cloud Logging JsonPayload, in our case used by our datadog log sink integration for filtering and billing attribution of dataflow job logs.

In the current LoggingAppender implementation the JsonPayload is not modifiable and is already set on the LogEntry.Builder before invoking LoggingEnhancer.

When using Cloud Logging client directly we can build the custom JsonPayload.

Feature request to allow JsonPayload modification either via LoggingEnhancer or Logback encoder or some other mechanism.