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 flush level OFF by daniel-sanche · Pull Request #319 · googleapis/java-logging-logback

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

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Jan 30, 2021

Copy link
Copy Markdown
Contributor

The library takes in a FlushLevel argument, which defaults to ERROR. Any logs at that level or higher will be auto-flushed instead of batched.

It appears there is no way to turn the flush level off, forcing all logs to be batched. This PR checks for Level.OFF, and doesn't set the flush level if it is chosen

Fixes #133 ☕️

Sorry, something went wrong.

Uh oh!

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

All reactions
daniel-sanche added 2 commits January 29, 2021 17:18
@daniel-sanche
allow turning off flush level
d695ee4
@daniel-sanche
added test
0e4e93e
@product-auto-label product-auto-label Bot added the api: logging Issues related to the googleapis/java-logging-logback API. label Jan 30, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 30, 2021
@codecov

codecov Bot commented Jan 30, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

Merging #319 (3f91889) into master (c0e02ba) will increase coverage by 0.39%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #319      +/-   ##
============================================
+ Coverage     69.03%   69.42%   +0.39%     
- Complexity       40       41       +1     
============================================
  Files             3        3              
  Lines           155      157       +2     
  Branches         17       18       +1     
============================================
+ Hits            107      109       +2     
  Misses           33       33              
  Partials         15       15              
Impacted Files Coverage Δ Complexity Δ
.../google/cloud/logging/logback/LoggingAppender.java 67.85% <100.00%> (+0.46%) 32.00 <0.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0e02ba...3f91889. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@daniel-sanche daniel-sanche mentioned this pull request Jan 30, 2021
com.google.cloud.logging.logback.LoggingAppender flush is too slow #133
Closed
daniel-sanche added 2 commits January 29, 2021 17:37
@daniel-sanche
fixed assertion
d0cb277
@daniel-sanche
fixed lint issue
3f91889
@daniel-sanche daniel-sanche changed the title feat: allow flush level OFF fix: allow flush level OFF Jan 30, 2021
@daniel-sanche daniel-sanche changed the title fix: allow flush level OFF feat: allow flush level OFF Feb 1, 2021
freelerobot
freelerobot approved these changes Feb 1, 2021
View reviewed changes
@daniel-sanche
daniel-sanche marked this pull request as ready for review February 1, 2021 19:42
@daniel-sanche
daniel-sanche requested a review from a team February 1, 2021 19:42
@daniel-sanche
daniel-sanche merged commit b7898d2 into master Feb 1, 2021
@daniel-sanche
daniel-sanche deleted the flush-level-off branch February 1, 2021 19:43
This was referenced Nov 23, 2022
fix: Need a way to disable flushing googleapis/java-logging#1206
Merged
Flushing logs slows down the application intensively (Error severity logs are flushed by default) we need a way to disable flushing googleapis/java-logging#1143
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

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

Uh oh!

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

Assignees

No one assigned

Labels

api: logging Issues related to the googleapis/java-logging-logback API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

com.google.cloud.logging.logback.LoggingAppender flush is too slow

Uh oh!

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

2 participants

@daniel-sanche @freelerobot
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.