#include <async_log_helper.h>
|
static void | sleep_or_yield (const spdlog::log_clock::time_point &now, const log_clock::time_point &last_op_time) |
|
Definition at line 36 of file async_log_helper.h.
spdlog::details::async_log_helper::async_log_helper |
( |
formatter_ptr |
formatter, |
|
|
const std::vector< sink_ptr > & |
sinks, |
|
|
size_t |
queue_size, |
|
|
const log_err_handler |
err_handler, |
|
|
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 |
spdlog::details::async_log_helper::~async_log_helper |
( |
| ) |
|
|
inline |
void spdlog::details::async_log_helper::flush |
( |
bool |
wait_for_q | ) |
|
|
inline |
void spdlog::details::async_log_helper::handle_flush_interval |
( |
log_clock::time_point & |
now, |
|
|
log_clock::time_point & |
last_flush |
|
) |
| |
|
inlineprivate |
bool spdlog::details::async_log_helper::process_next_msg |
( |
log_clock::time_point & |
last_pop, |
|
|
log_clock::time_point & |
last_flush |
|
) |
| |
|
inlineprivate |
void spdlog::details::async_log_helper::push_msg |
( |
async_msg && |
new_msg | ) |
|
|
inlineprivate |
void spdlog::details::async_log_helper::set_formatter |
( |
formatter_ptr |
msg_formatter | ) |
|
|
inline |
void spdlog::details::async_log_helper::sleep_or_yield |
( |
const spdlog::log_clock::time_point & |
now, |
|
|
const log_clock::time_point & |
last_op_time |
|
) |
| |
|
inlinestaticprivate |
void spdlog::details::async_log_helper::wait_empty_q |
( |
| ) |
|
|
inlineprivate |
void spdlog::details::async_log_helper::worker_loop |
( |
| ) |
|
|
inlineprivate |
const std::chrono::milliseconds spdlog::details::async_log_helper::_flush_interval_ms |
|
private |
bool spdlog::details::async_log_helper::_flush_requested |
|
private |
q_type spdlog::details::async_log_helper::_q |
|
private |
std::vector<std::shared_ptr<sinks::sink> > spdlog::details::async_log_helper::_sinks |
|
private |
bool spdlog::details::async_log_helper::_terminate_requested |
|
private |
const std::function<void()> spdlog::details::async_log_helper::_worker_teardown_cb |
|
private |
std::thread spdlog::details::async_log_helper::_worker_thread |
|
private |
const std::function<void()> spdlog::details::async_log_helper::_worker_warmup_cb |
|
private |
The documentation for this class was generated from the following file: