I use Log4J in a Java project and would like to asynchronously stream my logs to BigQuery. I did some research but couldn't really find a good way to do this. Even though, I think many people do this (I know some that do it for different languages).
Mind you, I found some several years old unmaintained code, but nothing that seems to maintained and that I would consider using in a production project. Also the asynchronous part is very important for me, it should be non-blocking.
Is there a library or some best practices to do this properly?
One solution would be to use the Java client library for Stackdriver Logging . You can then export your logs to BigQuery .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.