Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Namespaces | Macros | Typedefs
logging.h File Reference

defines console logging options for xgboost. Use to enforce unified print behavior. More...

#include <dmlc/logging.h>
#include <dmlc/thread_local.h>
#include <xgboost/base.h>
#include <xgboost/parameter.h>
#include <xgboost/global_config.h>
#include <sstream>
#include <map>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Data Structures

class  xgboost::BaseLogger
 
class  xgboost::ConsoleLogger
 
class  xgboost::TrackerLogger
 
class  xgboost::LogCallbackRegistry
 

Namespaces

namespace  xgboost
 namespace of xgboost
 

Macros

#define LOG_WARNING
 
#define LOG_INFO
 
#define LOG_DEBUG
 
#define LOG(severity)   LOG_##severity.stream()
 
#define LOG_CONSOLE
 
#define LOG_TRACKER   ::xgboost::TrackerLogger()
 

Typedefs

using xgboost::LogCallbackRegistryStore = dmlc::ThreadLocalStore< LogCallbackRegistry >
 

Detailed Description

defines console logging options for xgboost. Use to enforce unified print behavior.

Copyright (c) 2015-2019 by Contributors

Macro Definition Documentation

◆ LOG_CONSOLE

#define LOG_CONSOLE
Value:
::xgboost::ConsoleLogger::LogVerbosity::kIgnore)
Definition logging.h:39

◆ LOG_DEBUG

#define LOG_DEBUG
Value:
if (::xgboost::ConsoleLogger::ShouldLog( \
::xgboost::ConsoleLogger::LV::kDebug)) \
::xgboost::ConsoleLogger(__FILE__, __LINE__, \
::xgboost::ConsoleLogger::LogVerbosity::kDebug)

◆ LOG_INFO

#define LOG_INFO
Value:
if (::xgboost::ConsoleLogger::ShouldLog( \
::xgboost::ConsoleLogger::LV::kInfo)) \
::xgboost::ConsoleLogger(__FILE__, __LINE__, \
::xgboost::ConsoleLogger::LogVerbosity::kInfo)

◆ LOG_WARNING

#define LOG_WARNING
Value:
if (::xgboost::ConsoleLogger::ShouldLog( \
::xgboost::ConsoleLogger::LV::kWarning)) \
::xgboost::ConsoleLogger(__FILE__, __LINE__, \
::xgboost::ConsoleLogger::LogVerbosity::kWarning)