mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
fast_buf\!
This commit is contained in:
@@ -19,10 +19,10 @@ public:
|
||||
virtual ~console_sink() = default;
|
||||
|
||||
protected:
|
||||
virtual void _sink_it(const std::string& msg) override
|
||||
virtual void _sink_it(const bufpair_t& msg) override
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
_ostream << msg;
|
||||
_ostream.write(msg.first, msg.second);
|
||||
}
|
||||
|
||||
std::ostream& _ostream;
|
||||
|
Reference in New Issue
Block a user