|
SatCat5
|
Defines the interface for accepting Log messages.
SatCat5 logging system concepts.
To receive Log messages, derive a child class and override the log_event method. The constructor automatically appends new EventHandler objects to a global list of Log recipients.
#include <log.h>
Public Member Functions | |
| virtual void | log_event (s8 priority, unsigned nbytes, const char *msg)=0 |
| Callback for each formatted Log message. More... | |
Protected Member Functions | |
| EventHandler () | |
| Constructor automatically manages the list of active handler objects. | |
Private Attributes | |
| satcat5::log::EventHandler * | m_next |
|
pure virtual |
Callback for each formatted Log message.
Child class must override this method.)
Implemented in satcat5::log::ToCbor, satcat5::log::ToWriteable, satcat5::gui::LogToDisplay, satcat5::eth::LogToChat, satcat5::log::ToBeep, satcat5::cfg::LogToLcd, and satcat5::log::ToConsole.