mirror of
https://github.com/gabime/spdlog.git
synced 2025-11-16 09:28:56 +08:00
deleted copy op and a little format
This commit is contained in:
@@ -25,7 +25,7 @@ template<class Mutex>
|
||||
class base_sink : public sink
|
||||
{
|
||||
public:
|
||||
base_sink():_mutex() {}
|
||||
base_sink() = default;
|
||||
|
||||
base_sink(const base_sink&) = delete;
|
||||
base_sink& operator=(const base_sink&) = delete;
|
||||
|
||||
@@ -15,6 +15,7 @@ class sink
|
||||
{
|
||||
public:
|
||||
virtual ~sink() = default;
|
||||
|
||||
virtual void log(const details::log_msg& msg) = 0;
|
||||
virtual void flush() = 0;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace sinks
|
||||
* Windows color console sink. Uses WriteConsoleA to write to the console with colors
|
||||
*/
|
||||
template <class Mutex>
|
||||
class wincolor_sink : public base_sink<Mutex>
|
||||
class wincolor_sink : public base_sink<Mutex>
|
||||
{
|
||||
public:
|
||||
const WORD BOLD = FOREGROUND_INTENSITY;
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
wincolor_sink(const wincolor_sink& other) = delete;
|
||||
wincolor_sink& operator=(const wincolor_sink& other) = delete;
|
||||
|
||||
// change the color for the given level
|
||||
// change the color for the given level
|
||||
void set_color(level::level_enum level, WORD color)
|
||||
{
|
||||
std::lock_guard<Mutex> lock(base_sink<Mutex>::_mutex);
|
||||
|
||||
Reference in New Issue
Block a user