|
FastLED 3.9.15
|
ISR-safe async logger wrapper (zero heap allocation) Uses embedded AsyncLogQueue instead of heap-allocated pointer Registers itself automatically in ActiveLoggerRegistry on first access.
Definition at line 19 of file async_logger.h.
#include <async_logger.h>
Collaboration diagram for fl::AsyncLogger:Public Member Functions | |
| AsyncLogger () FL_NOEXCEPT | |
| ~AsyncLogger () FL_NOEXCEPT=default | |
| void | clear () |
| void | disableBackgroundFlush () |
| Disable background flushing. | |
| fl::u32 | droppedCount () const |
| bool | empty () const |
| bool | enableBackgroundFlush (fl::u32 interval_ms, fl::size messages_per_tick=5) |
| Enable background timer-based flushing (opt-in) | |
| void | flush () |
| fl::size | flushN (fl::size maxMessages) |
| Flush up to N messages from queue (bounded flush) | |
| bool | isBackgroundFlushEnabled () const |
| Check if background flushing is enabled. | |
| void | push (const char *msg) |
| void | push (const fl::string &msg) |
| fl::size | size () const |
Private Attributes | |
| AsyncLogQueue< 128, 4096 > | mQueue |