|
template<class It > |
| async_logger (const std::string &name, const It &begin, const It &end, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr) |
|
| async_logger (const std::string &logger_name, sinks_init_list sinks, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr) |
|
| async_logger (const std::string &logger_name, sink_ptr single_sink, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr) |
|
virtual log_err_handler | error_handler () override |
|
void | flush () override |
|
void | format (details::log_msg &msg) override |
|
pattern_formatter & | operator= (const pattern_formatter &)=delete |
|
| pattern_formatter (const std::string &pattern, pattern_time_type pattern_time=pattern_time_type::local) |
|
| pattern_formatter (const pattern_formatter &)=delete |
|
virtual void | set_error_handler (log_err_handler) override |
|
virtual | ~formatter () |
|
template<typename Arg1 , typename... Args> |
void | critical (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | critical (const T &) |
|
template<typename Arg1 , typename... Args> |
void | critical_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | critical_if (const bool flag, const T &) |
|
template<typename Arg1 , typename... Args> |
void | debug (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | debug (const T &) |
|
template<typename Arg1 , typename... Args> |
void | debug_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | debug_if (const bool flag, const T &) |
|
template<typename Arg1 , typename... Args> |
void | error (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | error (const T &) |
|
template<typename Arg1 , typename... Args> |
void | error_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | error_if (const bool flag, const T &) |
|
void | flush_on (level::level_enum log_level) |
|
template<typename Arg1 , typename... Args> |
void | info (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | info (const T &) |
|
template<typename Arg1 , typename... Args> |
void | info_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | info_if (const bool flag, const T &) |
|
level::level_enum | level () const |
|
template<typename... Args> |
void | log (level::level_enum lvl, const char *fmt, const Args &...args) |
|
template<typename... Args> |
void | log (level::level_enum lvl, const char *msg) |
|
template<typename T > |
void | log (level::level_enum lvl, const T &) |
|
template<typename... Args> |
void | log_if (const bool flag, level::level_enum lvl, const char *fmt, const Args &...args) |
|
template<typename... Args> |
void | log_if (const bool flag, level::level_enum lvl, const char *msg) |
|
template<typename T > |
void | log_if (const bool flag, level::level_enum lvl, const T &) |
|
| logger (const std::string &logger_name, sink_ptr single_sink) |
|
| logger (const std::string &name, sinks_init_list) |
|
template<class It > |
| logger (const std::string &name, const It &begin, const It &end) |
|
| logger (const logger &)=delete |
|
const std::string & | name () const |
|
logger & | operator= (const logger &)=delete |
|
void | set_formatter (formatter_ptr) |
|
void | set_level (level::level_enum) |
|
void | set_pattern (const std::string &, pattern_time_type=pattern_time_type::local) |
|
bool | should_log (level::level_enum) const |
|
const std::vector< sink_ptr > & | sinks () const |
|
template<typename Arg1 , typename... Args> |
void | trace (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | trace (const T &) |
|
template<typename Arg1 , typename... Args> |
void | trace_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | trace_if (const bool flag, const T &) |
|
template<typename Arg1 , typename... Args> |
void | warn (const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | warn (const T &) |
|
template<typename Arg1 , typename... Args> |
void | warn_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args) |
|
template<typename T > |
void | warn_if (const bool flag, const T &) |
|
virtual | ~logger () |
|
Definition at line 34 of file async_logger.h.