genn icon indicating copy to clipboard operation
genn copied to clipboard

Redirect log output from C++ to Python

Open neworderofjamie opened this issue 2 years ago • 0 comments

Currently, messages written to GeNN log channels (e.g. our nice new transpiler error messages) go to stdout which is often hidden in Python e.g. in notebooks. On Linux we could just redirect these using e.g. https://pypi.org/project/wurlitzer/ but that doesn't work on Windows. Wrapping plog::IAppender with pybind11 would probably be the most elegant solution

neworderofjamie avatar Apr 09 '24 09:04 neworderofjamie