MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / ShouldLogInternal

Method ShouldLogInternal

ProgramLog/error/error.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "win32.hpp"
16
17bool 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
28void Error::impl::Log(std::wstring_view msg, spdlog::level::level_enum level, std::source_location location)
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected