mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
async_logger comments
This commit is contained in:
parent
0dd4e552ed
commit
4dc75adf9b
@ -24,12 +24,14 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// Very fast asynchronous logger (millions of logs per second on aregular desktop)
|
// Very fast asynchronous logger (millions of logs per second on an average desktop)
|
||||||
// Uses pre allocated lockfree queue for maximum throughput even under large number of threads.
|
// Uses pre allocated lockfree queue for maximum throughput even under large number of threads.
|
||||||
|
// Creates a single back thread to pop messages from the queue and log them.
|
||||||
|
//
|
||||||
// Upon each log write the logger:
|
// Upon each log write the logger:
|
||||||
// 1. Checks if its log level is enough to log the message
|
// 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
|
// 2. Push a new copy of the message to a queue (or block the caller until space is available in the queue)
|
||||||
// 3. will throw spdlog_ex upon exceptions
|
// 3. will throw spdlog_ex upon log exceptions
|
||||||
// Upong destruction, logs all remaining messages in the queue before destructing..
|
// Upong destruction, logs all remaining messages in the queue before destructing..
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
Loading…
Reference in New Issue
Block a user