Skip to content
Snippets Groups Projects
Commit 4a30eb30 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Enable colors in console logger

parent d2f1e641
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
#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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment