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
It looks like as part of the refactoring around logging/error handling, the option of being able to specify a function to control where logs go has disappeared. Currently, you can just set a filename to use, whereas previously you could tie it into other logging systems (e.g. Python's logging), or just drop the logs as needed (which you can sort-of do now by configuring the logfile as /dev/null). Would it be possible to have a logging version of https://sundials.readthedocs.io/en/latest/sundials/Errors_link.html#c.SUNErrHandlerFn (which appears not to be called for lower priority logs)?
The text was updated successfully, but these errors were encountered:
It looks like as part of the refactoring around logging/error handling, the option of being able to specify a function to control where logs go has disappeared.
Previously, only KINSOL had a capability to separately provide callback functions for output that was lower priority than "error" level output (it had a separate callback for "error" output and "info" output). The other packages had "warning" and "error" messages, but they would both go to the same file, or through the same error handler function. We have added the capability (and corresponding messages) for more levels of logging output now that did not previously exist.
I suppose with the changes, two functionalities were lost: 1) if using KINSOL, there is no longer a way to specify a callback for info level output 2) warning level output no longer goes through a callback (since it was separated from the error level). I think we should at least restore those functionalities.
It looks like as part of the refactoring around logging/error handling, the option of being able to specify a function to control where logs go has disappeared. Currently, you can just set a filename to use, whereas previously you could tie it into other logging systems (e.g. Python's logging), or just drop the logs as needed (which you can sort-of do now by configuring the logfile as
/dev/null
). Would it be possible to have a logging version of https://sundials.readthedocs.io/en/latest/sundials/Errors_link.html#c.SUNErrHandlerFn (which appears not to be called for lower priority logs)?The text was updated successfully, but these errors were encountered: