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 — com.google.cloud.logging.logback.LoggingAppender flush is too slow · Issue #133 · googleapis/java-logging-logback

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

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

Copy link
Copy link
Closed
#319
Closed
com.google.cloud.logging.logback.LoggingAppender flush is too slow#133
#319
Copy link
Assignees
daniel-sanche
Labels
api: loggingIssues related to the googleapis/java-logging-logback API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Description

@kunieda-o
kunieda-o
opened on Jul 8, 2020
Issue body actions

I have a project running Java in an app engine which uses com.google.cloud.logging.logback.LoggingAppender to output log like as below.

https://cloud.google.com/logging/docs/setup/java

I found that the latency of log.error output is around 100ms. This means, if the app output error logs too many then app-engine would scale up.

Our app connect to some external services. When those services sometimes respond error, the app output error logs.

Does anyone know how to cope with it?

I expected that flushLevel=OFF would resolve this issue, but OFF=ALL by below method. https://github.com/googleapis/java-logging-logback/blob/0.116.0/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java#L336-L355

Sorry for my multi post.

https://stackoverflow.com/questions/62786760/q-gae-stackdriver-java-logback-error-logging-too-slow

I contacted Google Support Case and they told me to create an issue about this case.

Activity

  1. suraj-qlogic
    self-assigned this
    on Jul 8, 2020
  2. suraj-qlogic
    transferred this issue fromgoogleapis/google-cloud-javaon Jul 8, 2020
  3. product-auto-label
    added
    api: loggingIssues related to the googleapis/java-logging-logback API.
    on Jul 8, 2020
  4. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Jul 9, 2020
  5. simonz130
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: questionRequest for information or clarification. Not an issue.
    and removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Jul 14, 2020
  6. simonz130 commented on Jul 21, 2020

    @simonz130
    simonz130
    on Jul 21, 2020
    More actions

    I don't see anything in code where the code behaves differently when we log errors with regular messages.
    Can you confirm whether the issue with flush is happening when you log to stderr or also when you log to stdout?
    Also, it would be great if you could share a simple repro so we can try to reproduce it faster.

  7. simonz130
    self-assigned this
    on Jul 21, 2020
  8. kunieda-o commented on Jul 21, 2020

    @kunieda-o
    kunieda-o
    on Jul 21, 2020
    Author
    More actions

    @simonz130 Thank you for your response.
    I'll create the reproducer.
    For now, I haven't yet checked when log to stderr or stdout.

  9. suraj-qlogic
    removed their assignment
    on Aug 21, 2020
  10. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Nov 19, 2020
  11. kunieda-o commented on Dec 15, 2020

    @kunieda-o
    kunieda-o
    on Dec 15, 2020
    Author
    More actions

    @simonz130
    I created the reproducer.
    Could you please have a look at it?

    https://github.com/kunieda-o/log-flush-too-slow

  12. yoshi-automation
    added
    🚨This issue needs some love.
    on Jan 4, 2021
  13. daniel-sanche commented on Jan 30, 2021

    @daniel-sanche
    daniel-sanche
    on Jan 30, 2021
    Contributor
    More actions

    Thanks for the detailed issue report. I agree that flush level OFF should turn off all auto-flushing. I opened a PR to address this here: #319

  14. daniel-sanche
    closed this as completedin #319on Feb 1, 2021
  15. daniel-sanche
    reopened this on Feb 1, 2021
  16. daniel-sanche commented on Feb 1, 2021

    @daniel-sanche
    daniel-sanche
    on Feb 1, 2021
    Contributor
    More actions

    This issue should now be fixed, but I'll keep this open until it is released to be safe

  17. daniel-sanche
    assigned
    daniel-sanche
    and unassigned
    simonz130
    on Feb 2, 2021
  18. daniel-sanche commented on Feb 2, 2021

    @daniel-sanche
    daniel-sanche
    on Feb 2, 2021
    Contributor
    More actions

    I just tested with the new version and confirmed it works as expected on 0.120.0-alpha. Closing this now, but let me know if you want to continue the discussion

  19. daniel-sanche
    closed this as completedon Feb 2, 2021
  20. minherz
    removed
    🚨This issue needs some love.
    on Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @daniel-sanche
    daniel-sanche

Labels

api: loggingIssues related to the googleapis/java-logging-logback API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.