Photon 1.0.0
Loading...
Searching...
No Matches
stdout_color_sinks-inl.h
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#pragma once
5
6#ifndef SPDLOG_HEADER_ONLY
8#endif
9
10#include <spdlog/logger.h>
11#include <spdlog/common.h>
12
13namespace spdlog
14{
15
16 template <typename Factory>
17 SPDLOG_INLINE std::shared_ptr<logger> stdout_color_mt(const std::string& logger_name, color_mode mode)
18 {
19 return Factory::template create<sinks::stdout_color_sink_mt>(logger_name, mode);
20 }
21
22 template <typename Factory>
23 SPDLOG_INLINE std::shared_ptr<logger> stdout_color_st(const std::string& logger_name, color_mode mode)
24 {
25 return Factory::template create<sinks::stdout_color_sink_st>(logger_name, mode);
26 }
27
28 template <typename Factory>
29 SPDLOG_INLINE std::shared_ptr<logger> stderr_color_mt(const std::string& logger_name, color_mode mode)
30 {
31 return Factory::template create<sinks::stderr_color_sink_mt>(logger_name, mode);
32 }
33
34 template <typename Factory>
35 SPDLOG_INLINE std::shared_ptr<logger> stderr_color_st(const std::string& logger_name, color_mode mode)
36 {
37 return Factory::template create<sinks::stderr_color_sink_st>(logger_name, mode);
38 }
39} // namespace spdlog
#define SPDLOG_INLINE
Definition common.h:47
Definition async.h:26
SPDLOG_INLINE std::shared_ptr< logger > stdout_color_mt(const std::string &logger_name, color_mode mode)
Definition stdout_color_sinks-inl.h:17
SPDLOG_INLINE std::shared_ptr< logger > stderr_color_st(const std::string &logger_name, color_mode mode)
Definition stdout_color_sinks-inl.h:35
SPDLOG_INLINE std::shared_ptr< logger > stdout_color_st(const std::string &logger_name, color_mode mode)
Definition stdout_color_sinks-inl.h:23
SPDLOG_INLINE std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name, color_mode mode)
Definition stdout_color_sinks-inl.h:29
color_mode
Definition common.h:278