Replies: 4 comments
-
Hmm. Indeed the loggers in python and C++ are separate, and we don't currently have a way to manage the C++ logger from Python other than the functions wrapped in |
Beta Was this translation helpful? Give feedback.
-
One thing we could maybe do is add a function there to change spdlog to only sink to the Python logger, and then you could do whatever you want to the Python logger without needing to wrap all the functionality of spdlog to modify things there? |
Beta Was this translation helpful? Give feedback.
-
gotcha, thanks for confirming!
I think for the Python symforce interface, this may be ideal (closer to expected behavior at least). |
Beta Was this translation helpful? Give feedback.
-
Cool, created an issue for that here: #422 |
Beta Was this translation helpful? Give feedback.
-
I'm using the python
symforce.opt.Optimizer
which is printing optimization infoIs there a way to capture this output (generated by spdlog in C++) or redirect it to stdout? Some naive approaches like
don't seem to work
Beta Was this translation helpful? Give feedback.
All reactions