BlueBrain / nmodl

Code Generation Framework For NEURON MODeling Language
https://bluebrain.github.io/nmodl/
Apache License 2.0
54 stars 15 forks source link

Missing logging levels for Python wrapper at runtime #1169

Open JCGoran opened 7 months ago

JCGoran commented 7 months ago

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

1uc commented 7 months ago

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