I am using the google-cloud-cpp storage library within my application.
Within this application, I have a custom logger set up with spdlog.
I would like to provide a custom LogBackend / divert internal SDK logs to my custom logger, is this possible with the current storage library implementation?
Ideally I could derive a class from google::cloud::LogBackend
and output the processed log message to my custom logger.
This log backend would have to be added to the Logger
/ google::cloud::LogSink
possibly with google::cloud::LogSink::AddBackend(custom_backend)
If there is this functionality already, would you add the custom logger to the google::cloud::storage::Client
as an google::cloud::Option
?