mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
375 B
C
24 lines
375 B
C
![]()
11 years ago
|
#pragma once
|
||
![]()
11 years ago
|
#include <mutex>
|
||
![]()
11 years ago
|
#include "./base_sink.h"
|
||
![]()
11 years ago
|
#include "../details/null_mutex.h"
|
||
|
|
||
![]()
11 years ago
|
|
||
![]()
11 years ago
|
namespace spitlog {
|
||
![]()
11 years ago
|
namespace sinks {
|
||
![]()
11 years ago
|
|
||
|
template <class Mutex>
|
||
|
class null_sink : public base_sink<Mutex>
|
||
![]()
11 years ago
|
{
|
||
|
protected:
|
||
|
void _sink_it(const details::log_msg&) override
|
||
|
{}
|
||
|
};
|
||
|
|
||
![]()
11 years ago
|
typedef null_sink<details::null_mutex> null_sink_st;
|
||
|
typedef null_sink<std::mutex> null_sink_mt;
|
||
|
|
||
![]()
11 years ago
|
}
|
||
|
}
|
||
|
|