Namespaces | |
details | |
level | |
sinks | |
Classes | |
class | formatter |
class | logger |
class | spdlog_ex |
class | SPDLOG_FINAL |
Typedefs | |
using | filename_t = std::string |
using | formatter_ptr = std::shared_ptr< spdlog::formatter > |
using | level_t = std::atomic< int > |
using | log_clock = std::chrono::system_clock |
using | log_err_handler = std::function< void(const std::string &err_msg)> |
using | sink_ptr = std::shared_ptr< sinks::sink > |
using | sinks_init_list = std::initializer_list< sink_ptr > |
Enumerations | |
enum | async_overflow_policy { async_overflow_policy::block_retry, async_overflow_policy::discard_log_msg } |
enum | pattern_time_type { pattern_time_type::local, pattern_time_type::utc } |
Functions | |
void | apply_all (std::function< void(std::shared_ptr< logger >)> fun) |
std::shared_ptr< logger > | basic_logger_mt (const std::string &logger_name, const filename_t &filename, bool truncate=false) |
std::shared_ptr< logger > | basic_logger_st (const std::string &logger_name, const filename_t &filename, bool truncate=false) |
std::shared_ptr< logger > | create (const std::string &logger_name, const sink_ptr &sink) |
std::shared_ptr< logger > | create (const std::string &logger_name, sinks_init_list sinks) |
template<class It > | |
std::shared_ptr< logger > | create (const std::string &logger_name, const It &sinks_begin, const It &sinks_end) |
template<typename Sink , typename... Args> | |
std::shared_ptr< spdlog::logger > | create (const std::string &logger_name, Args...) |
std::shared_ptr< logger > | create_async (const std::string &logger_name, const sink_ptr &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) |
std::shared_ptr< logger > | create_async (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) |
template<class It > | |
std::shared_ptr< logger > | create_async (const std::string &logger_name, const It &sinks_begin, const It &sinks_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) |
std::shared_ptr< logger > | daily_logger_mt (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0) |
std::shared_ptr< logger > | daily_logger_st (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0) |
void | drop (const std::string &name) |
void | drop_all () |
std::shared_ptr< logger > | get (const std::string &name) |
void | register_logger (std::shared_ptr< logger > logger) |
std::shared_ptr< logger > | rotating_logger_mt (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files) |
std::shared_ptr< logger > | rotating_logger_st (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files) |
void | set_async_mode (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) |
void | set_error_handler (log_err_handler) |
void | set_formatter (formatter_ptr f) |
void | set_level (level::level_enum log_level) |
void | set_pattern (const std::string &format_string) |
void | set_sync_mode () |
std::shared_ptr< logger > | stderr_color_mt (const std::string &logger_name) |
std::shared_ptr< logger > | stderr_color_st (const std::string &logger_name) |
std::shared_ptr< logger > | stderr_logger_mt (const std::string &logger_name) |
std::shared_ptr< logger > | stderr_logger_st (const std::string &logger_name) |
std::shared_ptr< logger > | stdout_color_mt (const std::string &logger_name) |
std::shared_ptr< logger > | stdout_color_st (const std::string &logger_name) |
std::shared_ptr< logger > | stdout_logger_mt (const std::string &logger_name) |
std::shared_ptr< logger > | stdout_logger_st (const std::string &logger_name) |
using spdlog::filename_t = typedef std::string |
Definition at line 156 of file include/opc/spdlog/common.h.
using spdlog::formatter_ptr = typedef std::shared_ptr<spdlog::formatter> |
Definition at line 61 of file include/opc/spdlog/common.h.
using spdlog::level_t = typedef std::atomic<int> |
Definition at line 65 of file include/opc/spdlog/common.h.
using spdlog::log_clock = typedef std::chrono::system_clock |
Definition at line 58 of file include/opc/spdlog/common.h.
using spdlog::log_err_handler = typedef std::function<void(const std::string &err_msg)> |
Definition at line 68 of file include/opc/spdlog/common.h.
using spdlog::sink_ptr = typedef std::shared_ptr < sinks::sink > |
Definition at line 59 of file include/opc/spdlog/common.h.
using spdlog::sinks_init_list = typedef std::initializer_list < sink_ptr > |
Definition at line 60 of file include/opc/spdlog/common.h.
|
strong |
Enumerator | |
---|---|
block_retry | |
discard_log_msg |
Definition at line 106 of file include/opc/spdlog/common.h.
|
strong |
Enumerator | |
---|---|
local | |
utc |
Definition at line 116 of file include/opc/spdlog/common.h.
|
inline |
Definition at line 255 of file spdlog_impl.h.
|
inline |
Definition at line 51 of file spdlog_impl.h.
|
inline |
Definition at line 56 of file spdlog_impl.h.
|
inline |
Definition at line 179 of file spdlog_impl.h.
|
inline |
Definition at line 186 of file spdlog_impl.h.
std::shared_ptr<logger> spdlog::create | ( | const std::string & | logger_name, |
const It & | sinks_begin, | ||
const It & | sinks_end | ||
) |
|
inline |
Definition at line 193 of file spdlog_impl.h.
|
inline |
Definition at line 207 of file spdlog_impl.h.
|
inline |
Definition at line 213 of file spdlog_impl.h.
std::shared_ptr<logger> spdlog::create_async | ( | const std::string & | logger_name, |
const It & | sinks_begin, | ||
const It & | sinks_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 |
||
) |
|
inline |
Definition at line 73 of file spdlog_impl.h.
|
inline |
Definition at line 78 of file spdlog_impl.h.
|
inline |
Definition at line 45 of file spdlog_impl.h.
|
inline |
Definition at line 260 of file spdlog_impl.h.
|
inline |
Definition at line 40 of file spdlog_impl.h.
|
inline |
Definition at line 35 of file spdlog_impl.h.
|
inline |
Definition at line 62 of file spdlog_impl.h.
|
inline |
Definition at line 67 of file spdlog_impl.h.
|
inline |
Definition at line 245 of file spdlog_impl.h.
|
inline |
Definition at line 239 of file spdlog_impl.h.
|
inline |
Definition at line 224 of file spdlog_impl.h.
|
inline |
Definition at line 234 of file spdlog_impl.h.
|
inline |
Definition at line 229 of file spdlog_impl.h.
|
inline |
Definition at line 250 of file spdlog_impl.h.
|
inline |
Definition at line 150 of file spdlog_impl.h.
|
inline |
Definition at line 156 of file spdlog_impl.h.
|
inline |
Definition at line 97 of file spdlog_impl.h.
|
inline |
Definition at line 102 of file spdlog_impl.h.
|
inline |
Definition at line 138 of file spdlog_impl.h.
|
inline |
Definition at line 144 of file spdlog_impl.h.
|
inline |
Definition at line 87 of file spdlog_impl.h.
|
inline |
Definition at line 92 of file spdlog_impl.h.