[LIBXGBOOST] pass demo running.
This commit is contained in:
20
src/logging.cc
Normal file
20
src/logging.cc
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* Copyright 2015 by Contributors
|
||||
* \file logging.cc
|
||||
* \brief Implementation of loggers.
|
||||
* \author Tianqi Chen
|
||||
*/
|
||||
#include <xgboost/logging.h>
|
||||
#include <iostream>
|
||||
#include "./common/sync.h"
|
||||
|
||||
namespace xgboost {
|
||||
ConsoleLogger::~ConsoleLogger() {
|
||||
std::cout << log_stream_.str() << std::endl;
|
||||
}
|
||||
|
||||
TrackerLogger::~TrackerLogger() {
|
||||
log_stream_ << '\n';
|
||||
rabit::TrackerPrint(log_stream_.str());
|
||||
}
|
||||
} // namespace xgboost
|
||||
Reference in New Issue
Block a user