|
|
@ -11,7 +11,7 @@
|
|
|
|
#include <wincon.h>
|
|
|
|
#include <wincon.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <spdlog/common.h>
|
|
|
|
#include <spdlog/common.h>
|
|
|
|
#include <spdlog/pattern_formatter.h>
|
|
|
|
#include <spdlog/default_formatter.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
namespace sinks {
|
|
|
|
namespace sinks {
|
|
|
@ -19,7 +19,7 @@ template<typename ConsoleMutex>
|
|
|
|
SPDLOG_INLINE wincolor_sink<ConsoleMutex>::wincolor_sink(void *out_handle, color_mode mode)
|
|
|
|
SPDLOG_INLINE wincolor_sink<ConsoleMutex>::wincolor_sink(void *out_handle, color_mode mode)
|
|
|
|
: out_handle_(out_handle)
|
|
|
|
: out_handle_(out_handle)
|
|
|
|
, mutex_(ConsoleMutex::mutex())
|
|
|
|
, mutex_(ConsoleMutex::mutex())
|
|
|
|
, formatter_(details::make_unique<spdlog::pattern_formatter>())
|
|
|
|
, formatter_(details::make_unique<spdlog::default_formatter>())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
set_color_mode_impl(mode);
|
|
|
|
set_color_mode_impl(mode);
|
|
|
|