spdlog
Loading...
Searching...
No Matches
color_sinks.cpp
Go to the documentation of this file.
1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
2// Distributed under the MIT License (http://opensource.org/licenses/MIT)
3
4#ifndef SPDLOG_COMPILED_LIB
5# error Please define SPDLOG_COMPILED_LIB to compile this file.
6#endif
7
8#include <mutex>
9
11#include <spdlog/async.h>
12//
13// color sinks
14//
15#ifdef _WIN32
23#else
31#endif
32
33// factory methods for color loggers
35template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
36 const std::string &logger_name, color_mode mode);
37template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::synchronous_factory>(
38 const std::string &logger_name, color_mode mode);
39template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::synchronous_factory>(
40 const std::string &logger_name, color_mode mode);
41template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::synchronous_factory>(
42 const std::string &logger_name, color_mode mode);
43
44template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::async_factory>(
45 const std::string &logger_name, color_mode mode);
46template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::async_factory>(
47 const std::string &logger_name, color_mode mode);
48template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::async_factory>(
49 const std::string &logger_name, color_mode mode);
50template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::async_factory>(
51 const std::string &logger_name, color_mode mode);
#define SPDLOG_API
Definition common.h:31