FastLED 3.9.15
Loading...
Searching...
No Matches

◆ checkLoggerEnabled()

template<typename InfoProvider>
void fl::detail::checkLoggerEnabled ( )
inline

Check if logger is enabled and print error once if not.

Template Parameters
InfoProviderType providing category name, define name, and enabled status

Definition at line 80 of file async_logger.h.

80 {
81 if (!InfoProvider::isEnabled()) {
82 static bool error_printed = false;
83 if (!error_printed) {
84 error_printed = true;
85 printLoggerDisabledError(InfoProvider::categoryName(), InfoProvider::defineName());
86 }
87 }
88 }
void printLoggerDisabledError(const char *category_name, const char *define_name)
Print error message for disabled logger (non-template helper) Called from checkLoggerEnabled template...

References checkLoggerEnabled(), and printLoggerDisabledError().

Referenced by checkLoggerEnabled(), and fl::get_async_logger_by_index().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: