| 15 | #include "win32.hpp" |
| 16 | |
| 17 | bool Error::impl::ShouldLogInternal(spdlog::level::level_enum level) |
| 18 | { |
| 19 | // implicitly checks if logging is initialized. |
| 20 | if (const auto sink = Log::GetSink()) |
| 21 | { |
| 22 | return sink->should_log(level) || IsDebuggerPresent(); |
| 23 | } |
| 24 | |
| 25 | return false; |
| 26 | } |
| 27 | |
| 28 | void Error::impl::Log(std::wstring_view msg, spdlog::level::level_enum level, std::source_location location) |
| 29 | { |
nothing calls this directly
no outgoing calls
no test coverage detected