2015-11-29 00:24:20 +08:00
|
|
|
//
|
|
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
//
|
|
|
|
|
2014-11-01 09:20:54 +08:00
|
|
|
|
2014-10-10 07:44:12 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-02-25 11:26:18 +08:00
|
|
|
#include <spdlog/details/log_msg.h>
|
2014-10-10 07:44:12 +08:00
|
|
|
|
2014-10-31 07:13:27 +08:00
|
|
|
namespace spdlog
|
2014-10-10 07:44:12 +08:00
|
|
|
{
|
|
|
|
namespace sinks
|
|
|
|
{
|
2014-10-14 09:26:51 +08:00
|
|
|
class sink
|
2014-10-10 07:44:12 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-12-21 08:47:04 +08:00
|
|
|
virtual ~sink() {}
|
|
|
|
virtual void log(const details::log_msg& msg) = 0;
|
2015-05-09 19:24:01 +08:00
|
|
|
virtual void flush() = 0;
|
2014-10-10 07:44:12 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|