make a channel that only outputs to WinDbg with OutputDebugString
| 57 | } |
| 58 | // make a channel that only outputs to WinDbg with OutputDebugString |
| 59 | std::shared_ptr<IChannel> MakeODSChannel_() noexcept |
| 60 | { |
| 61 | try { |
| 62 | // channel |
| 63 | auto pChannel = std::make_shared<Channel>(); |
| 64 | // error resolver |
| 65 | pChannel->AttachComponent(MakeErrorCodePolicy_()); |
| 66 | // configure drivers |
| 67 | // make the formatter and file strategy |
| 68 | const auto pFormatter = std::make_shared<TextFormatter>(); |
| 69 | pChannel->AttachComponent(std::make_shared<MsvcDebugDriver>(pFormatter), "drv:dbg"); |
| 70 | return pChannel; |
| 71 | } |
| 72 | catch (...) { |
| 73 | return {}; |
| 74 | } |
| 75 | } |
| 76 | // create a channel that outputs to files in the specified directory |
| 77 | std::shared_ptr<IChannel> MakeFileChannel_(std::filesystem::path path) noexcept |
| 78 | { |
no test coverage detected