MCPcopy Create free account
hub / github.com/chronoxor/CppLogging / LogConfigFixture

Method LogConfigFixture

performance/processor_async.cpp:17–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16protected:
17 LogConfigFixture()
18 {
19 auto async_wait_null_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<NullLayout>());
20 async_wait_null_sink->appenders().push_back(std::make_shared<NullAppender>());
21 Config::ConfigLogger("async-wait-null", async_wait_null_sink);
22
23 auto async_wait_free_null_sink = std::make_shared<AsyncWaitFreeProcessor>(std::make_shared<NullLayout>());
24 async_wait_free_null_sink->appenders().push_back(std::make_shared<NullAppender>());
25 Config::ConfigLogger("async-wait-free-null", async_wait_free_null_sink);
26
27 auto async_wait_binary_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<BinaryLayout>());
28 async_wait_binary_sink->appenders().push_back(std::make_shared<NullAppender>());
29 Config::ConfigLogger("async-wait-binary", async_wait_binary_sink);
30
31 auto async_wait_free_binary_sink = std::make_shared<AsyncWaitFreeProcessor>(std::make_shared<BinaryLayout>());
32 async_wait_free_binary_sink->appenders().push_back(std::make_shared<NullAppender>());
33 Config::ConfigLogger("async-wait-free-binary", async_wait_free_binary_sink);
34
35 auto async_wait_text_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<TextLayout>());
36 async_wait_text_sink->appenders().push_back(std::make_shared<NullAppender>());
37 Config::ConfigLogger("async-wait-text", async_wait_text_sink);
38
39 auto async_wait_free_text_sink = std::make_shared<AsyncWaitFreeProcessor>(std::make_shared<TextLayout>());
40 async_wait_free_text_sink->appenders().push_back(std::make_shared<NullAppender>());
41 Config::ConfigLogger("async-wait-free-text", async_wait_free_text_sink);
42
43 Config::Startup();
44 }
45};
46
47BENCHMARK_THREADS_FIXTURE(LogConfigFixture, "AsyncWaitProcessor-null", settings)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected