40 template <
typename Arg1,
typename...
Args>
void trace(
const char* fmt,
const Arg1&,
const Args&... args);
41 template <
typename Arg1,
typename...
Args>
void debug(
const char* fmt,
const Arg1&,
const Args&... args);
42 template <
typename Arg1,
typename...
Args>
void info(
const char* fmt,
const Arg1&,
const Args&... args);
43 template <
typename Arg1,
typename...
Args>
void warn(
const char* fmt,
const Arg1&,
const Args&... args);
44 template <
typename Arg1,
typename...
Args>
void error(
const char* fmt,
const Arg1&,
const Args&... args);
45 template <
typename Arg1,
typename...
Args>
void critical(
const char* fmt,
const Arg1&,
const Args&... args);
49 template <
typename Arg1,
typename...
Args>
void trace_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
50 template <
typename Arg1,
typename...
Args>
void debug_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
51 template <
typename Arg1,
typename...
Args>
void info_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
52 template <
typename Arg1,
typename...
Args>
void warn_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
53 template <
typename Arg1,
typename...
Args>
void error_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
54 template <
typename Arg1,
typename...
Args>
void critical_if(
const bool flag,
const char* fmt,
const Arg1&,
const Args&... args);
56 #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT 59 template <
typename...
Args>
void trace(
const wchar_t* fmt,
const Args&... args);
60 template <
typename...
Args>
void debug(
const wchar_t* fmt,
const Args&... args);
61 template <
typename...
Args>
void info(
const wchar_t* fmt,
const Args&... args);
62 template <
typename...
Args>
void warn(
const wchar_t* fmt,
const Args&... args);
63 template <
typename...
Args>
void error(
const wchar_t* fmt,
const Args&... args);
64 template <
typename...
Args>
void critical(
const wchar_t* fmt,
const Args&... args);
68 template <
typename...
Args>
void trace_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
69 template <
typename...
Args>
void debug_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
70 template <
typename...
Args>
void info_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
71 template <
typename...
Args>
void warn_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
72 template <
typename...
Args>
void error_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
73 template <
typename...
Args>
void critical_if(
const bool flag,
const wchar_t* fmt,
const Args&... args);
74 #endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT 77 template <
typename T>
void trace(
const T&);
78 template <
typename T>
void debug(
const T&);
79 template <
typename T>
void info(
const T&);
80 template <
typename T>
void warn(
const T&);
81 template <
typename T>
void error(
const T&);
82 template <
typename T>
void critical(
const T&);
85 template <
typename T>
void trace_if(
const bool flag,
const T&);
86 template <
typename T>
void debug_if(
const bool flag,
const T&);
87 template <
typename T>
void info_if(
const bool flag,
const T&);
88 template <
typename T>
void warn_if(
const bool flag,
const T&);
89 template <
typename T>
void error_if(
const bool flag,
const T&);
90 template <
typename T>
void critical_if(
const bool flag,
const T&);
102 virtual void flush();
104 const std::vector<sink_ptr>&
sinks()
const;
void error_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
void error(const char *fmt, const Arg1 &, const Args &...args)
virtual log_err_handler error_handler()
void set_formatter(formatter_ptr)
void log_if(const bool flag, level::level_enum lvl, const char *fmt, const Args &...args)
logger & operator=(const logger &)=delete
void log(level::level_enum lvl, const char *fmt, const Args &...args)
std::shared_ptr< spdlog::formatter > formatter_ptr
void warn(const char *fmt, const Arg1 &, const Args &...args)
std::shared_ptr< sinks::sink > sink_ptr
void warn_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
internal::ArgsMatcher< InnerMatcher > Args(const InnerMatcher &matcher)
const std::vector< sink_ptr > & sinks() const
void set_level(level::level_enum)
void trace_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
spdlog::level_t _flush_level
void set_pattern(const std::string &, pattern_time_type=pattern_time_type::local)
void trace(const char *fmt, const Arg1 &, const Args &...args)
bool should_log(level::level_enum) const
std::atomic< size_t > _msg_counter
std::vector< sink_ptr > _sinks
void info_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
void debug_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
void critical_if(const bool flag, const char *fmt, const Arg1 &, const Args &...args)
void info(const char *fmt, const Arg1 &, const Args &...args)
void critical(const char *fmt, const Arg1 &, const Args &...args)
virtual void set_error_handler(log_err_handler)
std::atomic< time_t > _last_err_time
level::level_enum level() const
std::initializer_list< sink_ptr > sinks_init_list
virtual void _default_err_handler(const std::string &msg)
std::atomic< int > level_t
virtual void _set_formatter(formatter_ptr)
virtual void _sink_it(details::log_msg &)
const std::string & name() const
void debug(const char *fmt, const Arg1 &, const Args &...args)
bool _should_flush_on(const details::log_msg &)
std::function< void(const std::string &err_msg)> log_err_handler
log_err_handler _err_handler
virtual void _set_pattern(const std::string &, pattern_time_type)
logger(const std::string &logger_name, sink_ptr single_sink)
void flush_on(level::level_enum log_level)