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

Method LogConfigFixture

performance/file_sync.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16{
17protected:
18 LogConfigFixture()
19 {
20 auto sync_binary_sink = std::make_shared<SyncProcessor>(std::make_shared<BinaryLayout>());
21 sync_binary_sink->appenders().push_back(std::make_shared<FileAppender>(_binary_file));
22 Config::ConfigLogger("sync-binary", sync_binary_sink);
23
24 auto sync_text_sink = std::make_shared<SyncProcessor>(std::make_shared<TextLayout>());
25 sync_text_sink->appenders().push_back(std::make_shared<FileAppender>(_text_file));
26 Config::ConfigLogger("sync-text", sync_text_sink);
27
28 Config::Startup();
29 }
30
31 ~LogConfigFixture()
32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected