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

Method Initialize

performance/appender_null.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38protected:
39 void Initialize(CppBenchmark::Context& context) override
40 {
41 auto text_sink = std::make_shared<Processor>(std::make_shared<TextLayout>());
42 text_sink->appenders().push_back(std::make_shared<NullAppender>());
43 Config::ConfigLogger("text", text_sink);
44 Config::Startup();
45 }
46};
47
48BENCHMARK_FIXTURE(BinaryConfigFixture, "NullAppender-binary")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected