Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
null_sink.h
Go to the documentation of this file.
1//
2// Copyright(c) 2015 Gabi Melman.
3// Distributed under the MIT License (http://opensource.org/licenses/MIT)
4//
5
6#pragma once
7
8#include "base_sink.h"
9#include "../details/null_mutex.h"
10
11#include <mutex>
12
13namespace spdlog
14{
15namespace sinks
16{
17
18template <class Mutex>
19class null_sink : public base_sink < Mutex >
20{
21protected:
22 void _sink_it(const details::log_msg&) override
23 {}
24
25 void _flush() override
26 {}
27
28};
31
32}
33}
void _sink_it(const details::log_msg &) override
Definition null_sink.h:22
void _flush() override
Definition null_sink.h:25
null_sink< details::null_mutex > null_sink_st
Definition null_sink.h:29
null_sink< details::null_mutex > null_sink_mt
Definition null_sink.h:30