Treelite
src
logging.cc
Go to the documentation of this file.
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
}
treelite::LogCallbackRegistry
Definition:
logging.h:15
logging.h
logging facility for Treelite
Generated by
1.8.13