I have a Python binary that leverages numerous C++ functions through pybind11.
Both in Python and C++ I’m using absl logging.
I am trying to setup absl in Python to wrote logs to file instead of console, however the pybinded modules still write the logs to console and the rest of Python logs go to file.
From my understanding so far it seems like my only viable option is to extend the existing pybinded modules to expose a function to be able to write to file. That option has scalability issues as there are numerous pybinded files and it’s not future-proof.
Is there a way to have this implemented in a central location and have all the pybinded functions write logs to a file instead of console?
5