|
SatCat5
|
Service for forwarding Log events as text messages.
This class implements the log::EventHandler API, and forwards each generated Log message to the designated ChatProto object.
Definition at line 85 of file eth_chat.h.
#include <eth_chat.h>
Public Member Functions | |
| LogToChat (satcat5::eth::ChatProto *dst, const satcat5::eth::MacAddr &addr=satcat5::eth::MACADDR_BROADCAST) | |
Bind to the designated ChatProto object. More... | |
| void | log_event (s8 priority, unsigned nbytes, const char *msg) override |
Event handler for the log::EventHandler API. | |
Private Attributes | |
| satcat5::eth::ChatProto *const | m_chat |
| const satcat5::eth::MacAddr | m_addr |
| satcat5::log::EventHandler * | m_next |
|
explicit |
Bind to the designated ChatProto object.
Optionally set destination-MAC address, defaulting to broadcast.
Definition at line 124 of file eth_chat.cc.