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