20 fMinLogLevel_ = minLogLevel;
24 return logLevel >= fMinLogLevel_ and not
GetAppenders ().empty ();
26#if !qStroika_Foundation_Debug_DefaultTracingOn
31 va_start (argsList, format);
32 String msg = Characters::FormatV (format, argsList);
38 template <
typename CHAR_T,
typename... ARGS>
41 using namespace Characters::Literals;
43 String msg = fmt (args...);
44 DbgTrace (
"Logger::Log ({}, \"{}\")"_f, logLevel, msg);
48#if qStroika_Foundation_Debug_DefaultTracingOn
49 DbgTrace (
"...suppressed by WouldLog: {}"_f, fmt (args...));
58 constexpr EnumNames<Execution::Logger::Priority> DefaultNames<Execution::Logger::Priority>::k{{{
59 {Execution::Logger::Priority::eDebug, L
"Debug"},
60 {Execution::Logger::Priority::eInfo, L
"Info"},
61 {Execution::Logger::Priority::eNotice, L
"Notice"},
62 {Execution::Logger::Priority::eWarning, L
"Warning"},
63 {Execution::Logger::Priority::eError, L
"Error"},
64 {Execution::Logger::Priority::eCriticalError, L
"CriticalError"},
65 {Execution::Logger::Priority::eAlertError, L
"AlertError"},
66 {Execution::Logger::Priority::eEmergency, L
"Emergency"},
String is like std::u32string, except it is much easier to use, often much more space efficient,...
nonvirtual bool WouldLog(Priority logLevel) const
nonvirtual Priority GetMinLogLevel() const
void Log(Priority logLevel, const wchar_t *format,...)
nonvirtual void SetMinLogLevel(Priority minLogLevel)
nonvirtual Traversal::Iterable< shared_ptr< IAppenderRep > > GetAppenders() const