| 16 | { |
| 17 | protected: |
| 18 | LogConfigFixture() |
| 19 | { |
| 20 | auto async_wait_binary_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<BinaryLayout>()); |
| 21 | async_wait_binary_sink->appenders().push_back(std::make_shared<FileAppender>(_binary_file_1)); |
| 22 | Config::ConfigLogger("async-wait-binary", async_wait_binary_sink); |
| 23 | |
| 24 | auto async_wait_free_binary_sink = std::make_shared<AsyncWaitFreeProcessor>(std::make_shared<BinaryLayout>()); |
| 25 | async_wait_free_binary_sink->appenders().push_back(std::make_shared<FileAppender>(_binary_file_2)); |
| 26 | Config::ConfigLogger("async-wait-free-binary", async_wait_free_binary_sink); |
| 27 | |
| 28 | auto async_wait_text_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<TextLayout>()); |
| 29 | async_wait_text_sink->appenders().push_back(std::make_shared<FileAppender>(_text_file_1)); |
| 30 | Config::ConfigLogger("async-wait-text", async_wait_text_sink); |
| 31 | |
| 32 | auto async_wait_free_text_sink = std::make_shared<AsyncWaitProcessor>(std::make_shared<TextLayout>()); |
| 33 | async_wait_free_text_sink->appenders().push_back(std::make_shared<FileAppender>(_text_file_2)); |
| 34 | Config::ConfigLogger("async-wait-free-text", async_wait_free_text_sink); |
| 35 | |
| 36 | Config::Startup(); |
| 37 | } |
| 38 | |
| 39 | ~LogConfigFixture() |
| 40 | { |
nothing calls this directly
no outgoing calls
no test coverage detected