Treelite
src
logging.cc
Go to the documentation of this file.
1
8
#include <
treelite/logging.h
>
9
10
// Override logging mechanism
11
void
treelite::LogMessage::Log(
const
std::string& msg) {
12
const
treelite::LogCallbackRegistry
* registry =
treelite::LogCallbackRegistryStore::Get
();
13
auto
callback = registry->Get();
14
callback(msg.c_str());
15
}
treelite::LogCallbackRegistry
Definition:
logging.h:150
logging.h
logging facility for Treelite
treelite::ThreadLocalStore::Get
static T * Get()
Definition:
thread_local.h:20
Generated by
1.8.13