Commit c1386853 authored by gabime's avatar gabime

Fix issue #1147

parent 3a94a605
This diff is collapsed.
......@@ -50,6 +50,7 @@ protected:
HANDLE out_handle_;
mutex_t &mutex_;
bool should_do_colors_;
bool in_console_;
std::unique_ptr<spdlog::formatter> formatter_;
std::unordered_map<level::level_enum, WORD, level::level_hasher> colors_;
......@@ -57,6 +58,10 @@ protected:
WORD set_console_attribs(WORD attribs);
// print a range of formatted message to console
void print_range_(const fmt::memory_buffer &formatted, size_t start, size_t end);
//in case we are redirected to file (not in console mode)
void write_to_file_(const fmt::memory_buffer &formatted);
};
template<typename ConsoleMutex>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment