/*! * Copyright (c) 2017 by Contributors * \file logging.cc * \author Philip Cho * \brief logging facility for treelite */ #include #include // Override logging mechanism void dmlc::CustomLogMessage::Log(const std::string& msg) { const treelite::LogCallbackRegistry* registry = treelite::LogCallbackRegistryStore::Get(); auto callback = registry->Get(); callback(msg.c_str()); }