Agora
1.2.0
Agora project
|
Go to the documentation of this file.
33 template<
typename Sink,
typename... SinkArgs>
34 inline std::shared_ptr<spdlog::logger>
create(std::string logger_name, SinkArgs &&... sink_args)
36 return default_factory::create<Sink>(std::move(logger_name), std::forward<SinkArgs>(sink_args)...);
52 SPDLOG_API std::shared_ptr<logger>
get(
const std::string &name);
130 template<
typename... Args>
136 template<
typename... Args>
142 template<
typename... Args>
148 template<
typename... Args>
154 template<
typename... Args>
160 template<
typename... Args>
166 template<
typename... Args>
172 template<
typename... Args>
190 #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
191 template<
typename... Args>
197 template<
typename... Args>
203 template<
typename... Args>
204 inline void trace(wformat_string_t<Args...>
fmt, Args &&... args)
209 template<
typename... Args>
210 inline void debug(wformat_string_t<Args...>
fmt, Args &&... args)
215 template<
typename... Args>
216 inline void info(wformat_string_t<Args...>
fmt, Args &&... args)
221 template<
typename... Args>
222 inline void warn(wformat_string_t<Args...>
fmt, Args &&... args)
227 template<
typename... Args>
228 inline void error(wformat_string_t<Args...>
fmt, Args &&... args)
233 template<
typename... Args>
234 inline void critical(wformat_string_t<Args...>
fmt, Args &&... args)
291 #define SPDLOG_LOGGER_CALL(logger, level, ...) (logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__)
293 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
294 # define SPDLOG_LOGGER_TRACE(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::trace, __VA_ARGS__)
295 # define SPDLOG_TRACE(...) SPDLOG_LOGGER_TRACE(spdlog::default_logger_raw(), __VA_ARGS__)
297 # define SPDLOG_LOGGER_TRACE(logger, ...) (void)0
298 # define SPDLOG_TRACE(...) (void)0
301 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_DEBUG
302 # define SPDLOG_LOGGER_DEBUG(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::debug, __VA_ARGS__)
303 # define SPDLOG_DEBUG(...) SPDLOG_LOGGER_DEBUG(spdlog::default_logger_raw(), __VA_ARGS__)
305 # define SPDLOG_LOGGER_DEBUG(logger, ...) (void)0
306 # define SPDLOG_DEBUG(...) (void)0
309 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_INFO
310 # define SPDLOG_LOGGER_INFO(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::info, __VA_ARGS__)
311 # define SPDLOG_INFO(...) SPDLOG_LOGGER_INFO(spdlog::default_logger_raw(), __VA_ARGS__)
313 # define SPDLOG_LOGGER_INFO(logger, ...) (void)0
314 # define SPDLOG_INFO(...) (void)0
317 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_WARN
318 # define SPDLOG_LOGGER_WARN(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::warn, __VA_ARGS__)
319 # define SPDLOG_WARN(...) SPDLOG_LOGGER_WARN(spdlog::default_logger_raw(), __VA_ARGS__)
321 # define SPDLOG_LOGGER_WARN(logger, ...) (void)0
322 # define SPDLOG_WARN(...) (void)0
325 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_ERROR
326 # define SPDLOG_LOGGER_ERROR(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::err, __VA_ARGS__)
327 # define SPDLOG_ERROR(...) SPDLOG_LOGGER_ERROR(spdlog::default_logger_raw(), __VA_ARGS__)
329 # define SPDLOG_LOGGER_ERROR(logger, ...) (void)0
330 # define SPDLOG_ERROR(...) (void)0
333 #if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_CRITICAL
334 # define SPDLOG_LOGGER_CRITICAL(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::critical, __VA_ARGS__)
335 # define SPDLOG_CRITICAL(...) SPDLOG_LOGGER_CRITICAL(spdlog::default_logger_raw(), __VA_ARGS__)
337 # define SPDLOG_LOGGER_CRITICAL(logger, ...) (void)0
338 # define SPDLOG_CRITICAL(...) (void)0
341 #ifdef SPDLOG_HEADER_ONLY
void trace(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:144
SPDLOG_INLINE void set_error_handler(void(*handler)(const std::string &msg))
Definition: spdlog-inl.h:75
SPDLOG_INLINE level::level_enum get_level()
Definition: spdlog-inl.h:50
void error(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:167
SPDLOG_INLINE spdlog::logger * default_logger_raw()
Definition: spdlog-inl.h:115
SPDLOG_INLINE void initialize_logger(std::shared_ptr< logger > logger)
Definition: spdlog-inl.h:15
SPDLOG_INLINE void flush_every(std::chrono::seconds interval)
Definition: spdlog-inl.h:70
SPDLOG_INLINE std::shared_ptr< spdlog::logger > default_logger()
Definition: spdlog-inl.h:110
void critical(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:173
SPDLOG_INLINE void set_level(level::level_enum log_level)
Definition: spdlog-inl.h:60
SPDLOG_INLINE void set_pattern(std::string pattern, pattern_time_type time_type)
Definition: spdlog-inl.h:30
void debug(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:150
Definition: synchronous_factory.h:13
level_enum
Definition: common.h:211
void error(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:168
SPDLOG_INLINE void set_automatic_registration(bool automatic_registration)
Definition: spdlog-inl.h:105
void warn(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:162
void warn(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:161
SPDLOG_INLINE void apply_all(const std::function< void(std::shared_ptr< logger >)> &fun)
Definition: spdlog-inl.h:85
SPDLOG_INLINE void enable_backtrace(size_t n_messages)
Definition: spdlog-inl.h:35
SPDLOG_INLINE void drop(const std::string &name)
Definition: spdlog-inl.h:90
SPDLOG_INLINE std::shared_ptr< logger > get(const std::string &name)
Definition: spdlog-inl.h:20
void info(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:155
void trace(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:143
SPDLOG_INLINE void register_logger(std::shared_ptr< logger > logger)
Definition: spdlog-inl.h:80
std::shared_ptr< spdlog::logger > create(std::string logger_name, SinkArgs &&... sink_args)
Definition: spdlog.h:34
SPDLOG_INLINE void set_default_logger(std::shared_ptr< spdlog::logger > default_logger)
Definition: spdlog-inl.h:120
void info(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:156
function[avg_proc_duration, std_proc_duration]
Definition: parse_dl_file.m:1
SPDLOG_INLINE void disable_backtrace()
Definition: spdlog-inl.h:40
SPDLOG_INLINE void set_formatter(std::unique_ptr< spdlog::formatter > formatter)
Definition: spdlog-inl.h:25
pattern_time_type
Definition: common.h:267
SPDLOG_INLINE bool should_log(level::level_enum log_level)
Definition: spdlog-inl.h:55
Definition: bin_to_hex.h:102
SPDLOG_INLINE void shutdown()
Definition: spdlog-inl.h:100
SPDLOG_INLINE void dump_backtrace()
Definition: spdlog-inl.h:45
void log(source_loc loc, level::level_enum lvl, format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:88
#define SPDLOG_API
Definition: common.h:40
SPDLOG_INLINE void drop_all()
Definition: spdlog-inl.h:95
void debug(format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:149
SPDLOG_INLINE void flush_on(level::level_enum log_level)
Definition: spdlog-inl.h:65
void log(source_loc source, level::level_enum lvl, format_string_t< Args... > fmt, Args &&... args)
Definition: spdlog.h:131
void critical(format_string_t< Args... > fmt, Args &&... args)
Definition: logger.h:174