summary refs log tree commit diff
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
parentForgot to update cmake project version (diff)
downloadnheko-4a30eb30b3decf66aa842b8c11ea1f96ae3ad8a5.tar.xz
Enable colors in console logger
-rw-r--r--deps/CMakeLists.txt4
-rw-r--r--src/Logging.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt

index c9fefebb..ea2ed3e3 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt
@@ -32,9 +32,9 @@ option(USE_BUNDLED_MATRIX_CLIENT "Use the bundled version of mtxclient." include(ExternalProject) set(BOOST_URL - https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2) + https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2) set(BOOST_SHA256 - 5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9) + 7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7) set( MTXCLIENT_URL 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);