mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
minor fixes
This commit is contained in:
@@ -45,10 +45,17 @@ protected:
|
||||
|
||||
class null_sink:public base_sink
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<null_sink>& get()
|
||||
{
|
||||
static auto inst = std::make_shared<null_sink>();
|
||||
return inst;
|
||||
}
|
||||
protected:
|
||||
void _sink_it(const details::log_msg&) override
|
||||
{
|
||||
}
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -18,6 +18,7 @@ public:
|
||||
console_sink& operator=(const console_sink&) = delete;
|
||||
virtual ~console_sink() = default;
|
||||
|
||||
|
||||
protected:
|
||||
virtual void _sink_it(const details::log_msg& msg) override
|
||||
{
|
||||
@@ -42,6 +43,5 @@ inline std::shared_ptr<console_sink>& stderr_sink ()
|
||||
return inst;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user