treelite
logging.cc
1 
8 #include <dmlc/logging.h>
9 #include <treelite/logging.h>
10 
11 // Override logging mechanism
12 void dmlc::CustomLogMessage::Log(const std::string& msg) {
13  const treelite::LogCallbackRegistry* registry
14  = treelite::LogCallbackRegistryStore::Get();
15  auto callback = registry->Get();
16  callback(msg.c_str());
17 }