stdout_color_sinks.h
Go to the documentation of this file.
1 //
2 // Copyright(c) 2018 spdlog
3 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
4 //
5 
6 #pragma once
7 
8 #ifndef SPDLOG_H
9 #include "spdlog/spdlog.h"
10 #endif
11 
12 #ifdef _WIN32
14 #else
16 #endif
17 
18 namespace spdlog {
19 namespace sinks {
20 #ifdef _WIN32
25 #else
30 #endif
31 } // namespace sinks
32 
33 template<typename Factory = default_factory>
34 inline std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name)
35 {
36  return Factory::template create<sinks::stdout_color_sink_mt>(logger_name);
37 }
38 
39 template<typename Factory = default_factory>
40 inline std::shared_ptr<logger> stdout_color_st(const std::string &logger_name)
41 {
42  return Factory::template create<sinks::stdout_color_sink_st>(logger_name);
43 }
44 
45 template<typename Factory = default_factory>
46 inline std::shared_ptr<logger> stderr_color_mt(const std::string &logger_name)
47 {
48  return Factory::template create<sinks::stderr_color_sink_mt>(logger_name);
49 }
50 
51 template<typename Factory = default_factory>
52 inline std::shared_ptr<logger> stderr_color_st(const std::string &logger_name)
53 {
54  return Factory::template create<sinks::stderr_color_sink_mt>(logger_name);
55 }
56 } // namespace spdlog
std::shared_ptr< logger > stderr_color_st(const std::string &logger_name)
std::string string
Definition: nybbler.cc:12
wincolor_sink< details::console_stderr, details::console_mutex > wincolor_stderr_sink_mt
ansicolor_sink< details::console_stderr, details::console_mutex > ansicolor_stderr_sink_mt
ansicolor_sink< details::console_stdout, details::console_nullmutex > ansicolor_stdout_sink_st
ansicolor_stdout_sink_mt stdout_color_sink_mt
Definition: async.h:27
wincolor_sink< details::console_stdout, details::console_nullmutex > wincolor_stdout_sink_st
ansicolor_stdout_sink_st stdout_color_sink_st
ansicolor_stderr_sink_st stderr_color_sink_st
std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name)
std::shared_ptr< logger > stdout_color_mt(const std::string &logger_name)
wincolor_sink< details::console_stderr, details::console_nullmutex > wincolor_stderr_sink_st
ansicolor_sink< details::console_stdout, details::console_mutex > ansicolor_stdout_sink_mt
ansicolor_stderr_sink_mt stderr_color_sink_mt
wincolor_sink< details::console_stdout, details::console_mutex > wincolor_stdout_sink_mt
ansicolor_sink< details::console_stderr, details::console_nullmutex > ansicolor_stderr_sink_st
std::shared_ptr< logger > stdout_color_st(const std::string &logger_name)