// // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include #include #include "./ostream_sink.h" #include "../details/null_mutex.h" namespace spdlog { namespace sinks { template class stdout_sink : public ostream_sink { using MyType = stdout_sink; public: stdout_sink() : ostream_sink(std::cout, true) {} static std::shared_ptr instance() { static std::shared_ptr instance = std::make_shared(); return instance; } }; typedef stdout_sink stdout_sink_st; typedef stdout_sink stdout_sink_mt; template class stderr_sink : public ostream_sink { using MyType = stderr_sink; public: stderr_sink() : ostream_sink(std::cerr, true) {} static std::shared_ptr instance() { static std::shared_ptr instance = std::make_shared(); return instance; } }; typedef stderr_sink stderr_sink_mt; typedef stderr_sink stderr_sink_st; } }