summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-04 13:17:21 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-04 13:17:21 +0300
commit4a30eb30b3decf66aa842b8c11ea1f96ae3ad8a5 (patch)
tree089a88c31a4351ee7a2dbd72c65e28d0d0f80eb9 /src
parentForgot to update cmake project version (diff)
downloadnheko-4a30eb30b3decf66aa842b8c11ea1f96ae3ad8a5.tar.xz
Enable colors in console logger
Diffstat (limited to 'src')
-rw-r--r--src/Logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp

index 534447ea..298949cf 100644 --- a/src/Logging.cpp +++ b/src/Logging.cpp
@@ -1,7 +1,7 @@ #include "Logging.h" #include "spdlog/sinks/rotating_file_sink.h" -#include "spdlog/sinks/stdout_sinks.h" +#include "spdlog/sinks/stdout_color_sinks.h" #include <iostream> namespace { @@ -21,7 +21,7 @@ init(const std::string &file_path) auto file_sink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>( file_path, MAX_FILE_SIZE, MAX_LOG_FILES); - auto console_sink = std::make_shared<spdlog::sinks::stdout_sink_mt>(); + auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>(); std::vector<spdlog::sink_ptr> sinks; sinks.push_back(file_sink);