Skip to content

Commit

Permalink
vs_logging.cpp: ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen G authored and Stephen G committed Apr 23, 2024
1 parent 452652d commit 2d05a1f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions engine/src/vs_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,16 @@ void VegaStrikeLogger::FlushLogs() {
void VegaStrikeLogger::FlushLogsProgramExiting() {
logging_core_->flush();
if (console_log_sink_) {
// logging_core_->remove_sink(console_log_sink_);
logging_core_->remove_sink(console_log_sink_);
console_log_sink_->stop();
console_log_sink_->feed_records();
console_log_sink_->flush();
}
if (console_log_back_end_) {
console_log_back_end_->flush();
}
if (file_log_sink_) {
// logging_core_->remove_sink(file_log_sink_);
logging_core_->remove_sink(file_log_sink_);
file_log_sink_->stop();
file_log_sink_->feed_records();
file_log_sink_->flush();
}
if (file_log_back_end_) {
Expand All @@ -153,7 +151,7 @@ BOOST_LOG_GLOBAL_LOGGER_INIT(my_logger, severity_logger_mt<vega_log_level>) {
return lg;
}

VegaStrikeLogger::VegaStrikeLogger() : slg_(my_logger::get()), file_log_sink_(nullptr) {
VegaStrikeLogger::VegaStrikeLogger() : slg_(my_logger::get()), file_log_sink_(nullptr), file_log_back_end_(nullptr) {
boost::filesystem::path::imbue(std::locale("C"));
logging_core_ = boost::log::core::get();
// slg_ = my_logger::get();
Expand Down

0 comments on commit 2d05a1f

Please sign in to comment.