mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
async_logger comments
This commit is contained in:
parent
d37bded994
commit
0dd4e552ed
@ -24,10 +24,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// Async logger
|
||||
// Very fast asynchronous logger (millions of logs per second on aregular desktop)
|
||||
// Uses pre allocated lockfree queue for maximum throughput even under large number of threads.
|
||||
// Upon each log write the logger:
|
||||
// 1. Checks if its log level is enough to log the message
|
||||
// 2. Push a new copy of the message to a queue (uses sinks::async_sink for this)
|
||||
// 1. Checks if its log level is enough to log the message
|
||||
// 2. Push a new copy of the message to a queue or block the caller until space is available
|
||||
// 3. will throw spdlog_ex upon exceptions
|
||||
// Upong destruction, logs all remaining messages in the queue before destructing..
|
||||
|
||||
#include <chrono>
|
||||
#include "common.h"
|
||||
|
Loading…
Reference in New Issue
Block a user