GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: allow opt-out auto-population of the log entry metadata on write() by minherz · Pull Request #798 · googleapis/java-logging

This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Conversation

@minherz

@minherz minherz commented Dec 15, 2021

Copy link
Copy Markdown
Contributor

Provides opt-out configuration on the Logging instance and Logging.write() API levels to opt-out automatically populate empty metadata fields of the log entries being submitted for writing.

Fixes #689

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
minherz added 2 commits December 15, 2021 12:20
@minherz
feat: add opt-out configuration for metadata auto-population
4bf18eb
allow to opt-out auto populate log entry metadata on write in the write()
API and Logging instance levels.
@minherz
chore: fix cast compilation warning
a0af8d1
@minherz
minherz requested review from a team December 15, 2021 12:24
@product-auto-label product-auto-label Bot added the api: logging Issues related to the googleapis/java-logging API. label Dec 15, 2021
@blunderbuss-gcf blunderbuss-gcf Bot assigned simonz130 Dec 15, 2021
losalex
losalex reviewed Dec 15, 2021
View reviewed changes
Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

losalex
losalex suggested changes Dec 15, 2021
View reviewed changes

@losalex losalex left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test need to be added

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@minherz
chore: add unit testing for opt-out config
c7f2b0c
Test WriteOption to out-out  auto populating metadata.
Test LoggingOption to out-out  auto populating metadata.
Test default LoggingOption for auto populating metadata.
Refactor LoggingOptions tests.
Refactor LoggingOptions auto populate metadata getter method.
losalex
losalex approved these changes Dec 16, 2021
View reviewed changes

@losalex losalex left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@minherz
minherz merged commit 97c36a6 into minher/structured_logging Dec 16, 2021
@minherz
minherz deleted the minherz/689 branch December 16, 2021 17:54
@minherz minherz mentioned this pull request Dec 23, 2021
feat: enable auto-population of missing metadata in logs and printing structured logs to stdout #808
Merged
minherz added a commit that referenced this pull request Dec 30, 2021
@minherz
feat: allow opt-out auto-population of the log entry metadata on writ…
7b27af0
…e() (#798)

Allows to opt-out auto populate log entry metadata on write in the write() API and Logging instance levels.
Tests WriteOption to out-out  auto populating metadata.
Tests LoggingOption to out-out  auto populating metadata.
Tests default LoggingOption for auto populating metadata.
Refactors LoggingOptions tests.
Refactors LoggingOptions auto populate metadata getter method.
Fixes cast compilation warning.
minherz added a commit that referenced this pull request Jan 4, 2022
@minherz
feat: allow opt-out auto-population of the log entry metadata on writ…
b7612fb
…e() (#798)

Allows to opt-out auto populate log entry metadata on write in the write() API and Logging instance levels.
Tests WriteOption to out-out  auto populating metadata.
Tests LoggingOption to out-out  auto populating metadata.
Tests default LoggingOption for auto populating metadata.
Refactors LoggingOptions tests.
Refactors LoggingOptions auto populate metadata getter method.
Fixes cast compilation warning.
minherz added a commit that referenced this pull request Jan 5, 2022
@minherz
feat: allow opt-out auto-population of the log entry metadata on writ…
b0a6ea6
…e() (#798)

Allows to opt-out auto populate log entry metadata on write in the write() API and Logging instance levels.
Tests WriteOption to out-out  auto populating metadata.
Tests LoggingOption to out-out  auto populating metadata.
Tests default LoggingOption for auto populating metadata.
Refactors LoggingOptions tests.
Refactors LoggingOptions auto populate metadata getter method.
Fixes cast compilation warning.
minherz added a commit that referenced this pull request Jan 7, 2022
@minherz @gcf-owl-bot
feat: enable auto-population of missing metadata in logs and opting l…
bb25d5d
…ogs redirection to stdout in JUL handler (#808)

Aggregates the following work:
- #821
- #812
- #807
- #803
- #798

Fixes #689, #691, #799 and #800

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@losalex losalex losalex approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@simonz130 simonz130

Labels

api: logging Issues related to the googleapis/java-logging API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@minherz @losalex @simonz130
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.