|
FastLED 3.9.15
|
RAII class to temporarily disable all logging output.
Creates a scope where all fl::print/flprintln output is suppressed. When the object is destroyed, the previous log level is restored.
Usage:
#include <cstdio.h>
Public Member Functions | |
| ScopedLogDisable () FL_NOEXCEPT | |
| Constructor - saves current log level and disables logging. | |
| ScopedLogDisable (const ScopedLogDisable &) FL_NOEXCEPT=delete | |
| ScopedLogDisable (ScopedLogDisable &&other) FL_NOEXCEPT | |
| ~ScopedLogDisable () FL_NOEXCEPT | |
| Destructor - restores previous log level. | |
| ScopedLogDisable & | operator= (const ScopedLogDisable &) FL_NOEXCEPT=delete |
| ScopedLogDisable & | operator= (ScopedLogDisable &&) FL_NOEXCEPT=delete |
Private Attributes | |
| u8 | mPreviousLevel |