treelite
c_api_common.cc
1 
8 #include <treelite/logging.h>
9 #include <treelite/c_api_common.h>
10 #include "./c_api_error.h"
11 
12 using namespace treelite;
13 
14 int TreeliteRegisterLogCallback(void (*callback)(const char*)) {
15  API_BEGIN();
16  LogCallbackRegistry* registry = LogCallbackRegistryStore::Get();
17  registry->Register(callback);
18  API_END();
19 }