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
com.google.cloud.logging.logback.LoggingAppender flush is too slow #133
Comments
I don't see anything in code where the code behaves differently when we log errors with regular messages. |
@simonz130 Thank you for your response. |
@simonz130 |
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 |
This issue should now be fixed, but I'll keep this open until it is released to be safe |
I just tested with the new version and confirmed it works as expected on |
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.
The text was updated successfully, but these errors were encountered: