spdlog/include/c11log/sinks/null_sink.h

24 lines
374 B
C
Raw Normal View History

2014-08-12 05:04:17 +08:00
#pragma once
2014-10-14 13:00:39 +08:00
#include <mutex>
#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 {
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
}
}