nmodl icon indicating copy to clipboard operation
nmodl copied to clipboard

Missing logging levels for Python wrapper at runtime

Open JCGoran opened this issue 2 years ago • 1 comments

There doesn't seem to be a way to control the verbosity of the logging from the Python wrapper, only via the CLI (using --verbose), making it difficult to debug any issues using the Python wrapper. As we use the spdlog library for logging, the way to specify the verbosity of the logging is described here https://github.com/gabime/spdlog/issues/80

JCGoran avatar Feb 23 '24 14:02 JCGoran

In SpatialIndex and HighFive we implement a layer of indirection. Which from Python one set to redirect to the Python logging library. This should lead to a native logging experience in Python; and C++-only applications can continue to redirect to spdlog.

The HighFive variation is here: https://github.com/BlueBrain/HighFive/blob/e54d176be806c60aa9d61e333912934cc6dfa3cc/include/highfive/H5Utility.hpp#L89

1uc avatar Feb 23 '24 14:02 1uc