Agora  1.2.0
Agora project
spdlog-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/spdlog.h>
8 #endif
9 
10 #include <spdlog/common.h>
12 
13 namespace spdlog {
14 
15 SPDLOG_INLINE void initialize_logger(std::shared_ptr<logger> logger)
16 {
18 }
19 
20 SPDLOG_INLINE std::shared_ptr<logger> get(const std::string &name)
21 {
22  return details::registry::instance().get(name);
23 }
24 
25 SPDLOG_INLINE void set_formatter(std::unique_ptr<spdlog::formatter> formatter)
26 {
28 }
29 
30 SPDLOG_INLINE void set_pattern(std::string pattern, pattern_time_type time_type)
31 {
32  set_formatter(std::unique_ptr<spdlog::formatter>(new pattern_formatter(std::move(pattern), time_type)));
33 }
34 
35 SPDLOG_INLINE void enable_backtrace(size_t n_messages)
36 {
38 }
39 
41 {
43 }
44 
46 {
48 }
49 
51 {
52  return default_logger_raw()->level();
53 }
54 
56 {
57  return default_logger_raw()->should_log(log_level);
58 }
59 
61 {
63 }
64 
66 {
68 }
69 
70 SPDLOG_INLINE void flush_every(std::chrono::seconds interval)
71 {
73 }
74 
75 SPDLOG_INLINE void set_error_handler(void (*handler)(const std::string &msg))
76 {
78 }
79 
80 SPDLOG_INLINE void register_logger(std::shared_ptr<logger> logger)
81 {
83 }
84 
85 SPDLOG_INLINE void apply_all(const std::function<void(std::shared_ptr<logger>)> &fun)
86 {
88 }
89 
90 SPDLOG_INLINE void drop(const std::string &name)
91 {
93 }
94 
96 {
98 }
99 
101 {
103 }
104 
105 SPDLOG_INLINE void set_automatic_registration(bool automatic_registration)
106 {
108 }
109 
110 SPDLOG_INLINE std::shared_ptr<spdlog::logger> default_logger()
111 {
113 }
114 
116 {
118 }
119 
120 SPDLOG_INLINE void set_default_logger(std::shared_ptr<spdlog::logger> default_logger)
121 {
123 }
124 
125 } // namespace spdlog
spdlog::formatter
Definition: formatter.h:11
spdlog::details::registry::get_default_raw
logger * get_default_raw()
Definition: registry-inl.h:105
spdlog::details::registry::disable_backtrace
void disable_backtrace()
Definition: registry-inl.h:161
spdlog::set_error_handler
SPDLOG_INLINE void set_error_handler(void(*handler)(const std::string &msg))
Definition: spdlog-inl.h:75
spdlog::get_level
SPDLOG_INLINE level::level_enum get_level()
Definition: spdlog-inl.h:50
spdlog::default_logger_raw
SPDLOG_INLINE spdlog::logger * default_logger_raw()
Definition: spdlog-inl.h:115
spdlog::initialize_logger
SPDLOG_INLINE void initialize_logger(std::shared_ptr< logger > logger)
Definition: spdlog-inl.h:15
spdlog::flush_every
SPDLOG_INLINE void flush_every(std::chrono::seconds interval)
Definition: spdlog-inl.h:70
spdlog::default_logger
SPDLOG_INLINE std::shared_ptr< spdlog::logger > default_logger()
Definition: spdlog-inl.h:110
spdlog::set_level
SPDLOG_INLINE void set_level(level::level_enum log_level)
Definition: spdlog-inl.h:60
spdlog::set_pattern
SPDLOG_INLINE void set_pattern(std::string pattern, pattern_time_type time_type)
Definition: spdlog-inl.h:30
spdlog::logger
Definition: logger.h:54
spdlog::details::registry::set_formatter
void set_formatter(std::unique_ptr< formatter > formatter)
Definition: registry-inl.h:140
spdlog::level::level_enum
level_enum
Definition: common.h:211
spdlog::details::registry::apply_all
void apply_all(const std::function< void(const std::shared_ptr< logger >)> &fun)
Definition: registry-inl.h:208
spdlog::set_automatic_registration
SPDLOG_INLINE void set_automatic_registration(bool automatic_registration)
Definition: spdlog-inl.h:105
spdlog::pattern_formatter
Definition: pattern_formatter.h:77
spdlog::logger::dump_backtrace
void dump_backtrace()
Definition: logger-inl.h:119
spdlog::details::registry::register_logger
void register_logger(std::shared_ptr< logger > new_logger)
Definition: registry-inl.h:54
spdlog::details::registry::get
std::shared_ptr< logger > get(const std::string &logger_name)
Definition: registry-inl.h:88
spdlog::details::registry::flush_every
void flush_every(std::chrono::seconds interval)
Definition: registry-inl.h:191
spdlog::details::registry::drop
void drop(const std::string &logger_name)
Definition: registry-inl.h:226
spdlog::details::registry::set_error_handler
void set_error_handler(err_handler handler)
Definition: registry-inl.h:198
spdlog::apply_all
SPDLOG_INLINE void apply_all(const std::function< void(std::shared_ptr< logger >)> &fun)
Definition: spdlog-inl.h:85
spdlog
Definition: async.h:25
spdlog::logger::level
level::level_enum level() const
Definition: logger-inl.h:72
spdlog::enable_backtrace
SPDLOG_INLINE void enable_backtrace(size_t n_messages)
Definition: spdlog-inl.h:35
spdlog.h
spdlog::details::registry::initialize_logger
void initialize_logger(std::shared_ptr< logger > new_logger)
Definition: registry-inl.h:60
spdlog::details::registry::set_default_logger
void set_default_logger(std::shared_ptr< logger > new_default_logger)
Definition: registry-inl.h:112
spdlog::drop
SPDLOG_INLINE void drop(const std::string &name)
Definition: spdlog-inl.h:90
spdlog::details::registry::enable_backtrace
void enable_backtrace(size_t n_messages)
Definition: registry-inl.h:150
SPDLOG_INLINE
#define SPDLOG_INLINE
Definition: common.h:42
spdlog::get
SPDLOG_INLINE std::shared_ptr< logger > get(const std::string &name)
Definition: spdlog-inl.h:20
spdlog::details::registry::default_logger
std::shared_ptr< logger > default_logger()
Definition: registry-inl.h:95
spdlog::details::registry::set_level
void set_level(level::level_enum log_level)
Definition: registry-inl.h:171
spdlog::register_logger
SPDLOG_INLINE void register_logger(std::shared_ptr< logger > logger)
Definition: spdlog-inl.h:80
spdlog::set_default_logger
SPDLOG_INLINE void set_default_logger(std::shared_ptr< spdlog::logger > default_logger)
Definition: spdlog-inl.h:120
function
function[avg_proc_duration, std_proc_duration]
Definition: parse_dl_file.m:1
common.h
spdlog::disable_backtrace
SPDLOG_INLINE void disable_backtrace()
Definition: spdlog-inl.h:40
spdlog::set_formatter
SPDLOG_INLINE void set_formatter(std::unique_ptr< spdlog::formatter > formatter)
Definition: spdlog-inl.h:25
spdlog::pattern_time_type
pattern_time_type
Definition: common.h:267
spdlog::should_log
SPDLOG_INLINE bool should_log(level::level_enum log_level)
Definition: spdlog-inl.h:55
pattern_formatter.h
spdlog::details::registry::drop_all
void drop_all()
Definition: registry-inl.h:236
spdlog::shutdown
SPDLOG_INLINE void shutdown()
Definition: spdlog-inl.h:100
spdlog::details::registry::flush_on
void flush_on(level::level_enum log_level)
Definition: registry-inl.h:181
spdlog::dump_backtrace
SPDLOG_INLINE void dump_backtrace()
Definition: spdlog-inl.h:45
spdlog::logger::should_log
bool should_log(level::level_enum msg_level) const
Definition: logger.h:301
spdlog::drop_all
SPDLOG_INLINE void drop_all()
Definition: spdlog-inl.h:95
spdlog::flush_on
SPDLOG_INLINE void flush_on(level::level_enum log_level)
Definition: spdlog-inl.h:65
spdlog::details::registry::set_automatic_registration
void set_automatic_registration(bool automatic_registration)
Definition: registry-inl.h:264
spdlog::details::registry::shutdown
void shutdown()
Definition: registry-inl.h:244
spdlog::details::registry::instance
static registry & instance()
Definition: registry-inl.h:291