SatCat5
satcat5::log::EventHandler Class Referenceabstract

Detailed Description

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.

Definition at line 72 of file log.h.

#include <log.h>

Inheritance diagram for satcat5::log::EventHandler:
[legend]
Collaboration diagram for satcat5::log::EventHandler:
[legend]

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::EventHandlerm_next
 

Member Function Documentation

◆ log_event()

virtual void satcat5::log::EventHandler::log_event ( s8  priority,
unsigned  nbytes,
const char *  msg 
)
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.


The documentation for this class was generated from the following files: