Flushing logs slows down the application intensively (Error severity logs are flushed by default) we need a way to disable flushing #1143
Labels
api: logging
Issues related to the googleapis/java-logging API.
logging-resilience
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
Steps to reproduce
Using JUL
Code example
Any additional information below
Related to:-
googleapis/google-cloud-java#2796
googleapis/google-cloud-java#4254
Setting the flush level to something higher than error doesn't work.
Also setting it though logging.properties file doesn't work
com.google.cloud.logging.LoggingHandler.flushLevel=EMERGENCY
Error logs are flushed by default which causes massive slows down for that request overall
Profiling the system shows that most of the time are gone as a wall time on the flush call
We need a way to disable flushing for good.
Didn't try .setFlushLevel(Level.OFF);
The text was updated successfully, but these errors were encountered: