mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
wip
This commit is contained in:
@@ -5,17 +5,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// 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.
|
||||
// Fast asynchronous logger.
|
||||
// Uses pre allocated queue.
|
||||
// Creates a single back thread to pop messages from the queue and log them.
|
||||
//
|
||||
// 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 (or block the caller until
|
||||
// space is available in the queue)
|
||||
// 3. will throw spdlog_ex upon log exceptions
|
||||
// Upon destruction, logs all remaining messages in the queue before
|
||||
// destructing..
|
||||
|
||||
|
@@ -341,5 +341,5 @@ protected:
|
||||
} // namespace spdlog
|
||||
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "logger-inl.h
|
||||
#include "logger-inl.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user