You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to capture this output (generated by spdlog in C++) or redirect it to stdout? Some naive approaches like
from symforce import logger as symforce_logger, LOGGING_FORMAT as SYMFORCE_LOGGING_FORMAT
symforce_logger.handlers.clear()
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.WARNING)
formatter = logging.Formatter(SYMFORCE_LOGGING_FORMAT)
handler.setFormatter(formatter)
symforce_logger.addHandler(handler)
don't seem to work
Conclusion in the discussion was that it would be nice to be able to attach spdlog to the Python logger, which would let us wrap one function to do that (rather than the entire spdlog interface), and then people will be able to manage things through the python logger
The text was updated successfully, but these errors were encountered:
Discussed in #420
Originally posted by tchittesh January 9, 2025
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
Conclusion in the discussion was that it would be nice to be able to attach spdlog to the Python logger, which would let us wrap one function to do that (rather than the entire spdlog interface), and then people will be able to manage things through the python logger
The text was updated successfully, but these errors were encountered: