2014-08-12 05:04:17 +08:00
|
|
|
#pragma once
|
2014-10-14 13:00:39 +08:00
|
|
|
#include <mutex>
|
2014-10-19 07:54:45 +08:00
|
|
|
#include "./base_sink.h"
|
2014-10-14 13:00:39 +08:00
|
|
|
#include "../details/null_mutex.h"
|
|
|
|
|
2014-08-12 05:04:17 +08:00
|
|
|
|
|
|
|
namespace c11log {
|
|
|
|
namespace sinks {
|
2014-10-10 07:45:23 +08:00
|
|
|
|
|
|
|
template <class Mutex>
|
|
|
|
class null_sink : public base_sink<Mutex>
|
2014-08-12 05:04:17 +08:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
void _sink_it(const details::log_msg&) override
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2014-10-14 13:00:39 +08:00
|
|
|
typedef null_sink<details::null_mutex> null_sink_st;
|
|
|
|
typedef null_sink<std::mutex> null_sink_mt;
|
|
|
|
|
2014-08-12 05:04:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|