I’m working with a library that uses the Info and Fatal functions that seem to be part of ROOT, but I’d like to silence or redirect some of them and can’t find the documentation. Is there some way to send the output to Info and Fatal to something other than the terminal in compiled C++ code?
In base/inc/TError.h the type ErrorHandlerFunc_t is defined as a
pointer to a funtion, like
[code] typedef void (*ErrorHandlerFunc_t)(int level,
const char *location,
const char *msg);
You can then enable the use of your 'MyErrorHandler; with
See the implementation of DefaultErrorHandler for inspiration.