mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 08:50:26 +08:00
fix typo
This commit is contained in:
parent
8d96662405
commit
0a6ea2fec9
@ -19,7 +19,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include <atomic>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -111,7 +110,7 @@ int main(int argc, char *argv[]) {
|
|||||||
auto logger = std::make_shared<async_logger>(
|
auto logger = std::make_shared<async_logger>(
|
||||||
"async_logger", std::move(file_sink), std::move(tp), async_overflow_policy::block);
|
"async_logger", std::move(file_sink), std::move(tp), async_overflow_policy::block);
|
||||||
bench_mt(howmany, std::move(logger), threads);
|
bench_mt(howmany, std::move(logger), threads);
|
||||||
// verify_file(filename, howmany);
|
verify_file(filename, howmany);
|
||||||
}
|
}
|
||||||
|
|
||||||
spdlog::info("");
|
spdlog::info("");
|
||||||
|
@ -4,11 +4,10 @@ namespace spdlog {
|
|||||||
// Async overflow policy - block by default.
|
// Async overflow policy - block by default.
|
||||||
enum class async_overflow_policy {
|
enum class async_overflow_policy {
|
||||||
block, // Block until message can be enqueued
|
block, // Block until message can be enqueued
|
||||||
overrun_oldest, // Discard oldest message in the queue if full when trying to
|
overrun_oldest, // Discard the oldest message in the queue if full when trying to
|
||||||
// add new item.
|
// add new item.
|
||||||
discard_new // Discard new message if the queue is full when trying to add new item.
|
discard_new // Discard new message if the queue is full when trying to add new item.
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user