From 4a30eb30b3decf66aa842b8c11ea1f96ae3ad8a5 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 4 Sep 2018 13:17:21 +0300 Subject: Enable colors in console logger --- src/Logging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Logging.cpp') 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 namespace { @@ -21,7 +21,7 @@ init(const std::string &file_path) auto file_sink = std::make_shared( file_path, MAX_FILE_SIZE, MAX_LOG_FILES); - auto console_sink = std::make_shared(); + auto console_sink = std::make_shared(); std::vector sinks; sinks.push_back(file_sink); -- cgit 1.5.1