Skip to content

Fix: Fix Appender default flushlevel to be consistent with java-logging #1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

cindy-peng
Copy link
Contributor

@cindy-peng cindy-peng commented Feb 14, 2025

The java-logging library defaults to logging flush level to be OFF due to the performance cost of flushing on the same thread as the application. This fix is to change appender default flush level from error to be off to be consistent with java-logging library. For testing, added unit tests and changed existing easymock testing expectations.

Fixes #1328 ☕️

If you write sample code, please follow the samples format.

@cindy-peng cindy-peng requested review from a team as code owners February 14, 2025 03:42
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: logging Issues related to the googleapis/java-logging-logback API. labels Feb 14, 2025
@cindy-peng cindy-peng merged commit 34a9539 into main Feb 17, 2025
18 checks passed
@cindy-peng cindy-peng deleted the cindy/flushlevel branch February 17, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging-logback API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Appender default flushlevel is inconsistent with java-logging client's default
2 participants