mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
worker warmup callback
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
// Upong destruction, logs all remaining messages in the queue before destructing..
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include "common.h"
|
||||
#include "logger.h"
|
||||
|
||||
@@ -51,9 +52,9 @@ class async_logger :public logger
|
||||
{
|
||||
public:
|
||||
template<class It>
|
||||
async_logger(const std::string& name, const It& begin, const It& end, size_t queue_size);
|
||||
async_logger(const std::string& logger_name, sinks_init_list sinks, size_t queue_size);
|
||||
async_logger(const std::string& logger_name, sink_ptr single_sink, size_t queue_size);
|
||||
async_logger(const std::string& name, const It& begin, const It& end, size_t queue_size, const std::function<void()>& worker_warmup_cb = nullptr);
|
||||
async_logger(const std::string& logger_name, sinks_init_list sinks, size_t queue_size, const std::function<void()>& worker_warmup_cb = nullptr);
|
||||
async_logger(const std::string& logger_name, sink_ptr single_sink, size_t queue_size, const std::function<void()>& worker_warmup_cb = nullptr);
|
||||
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user