Non-blocking UDP log backend. More...
#include <OgcLoggerUdp.h>
Public Member Functions | |
| bool | init (const LogConfig &config) override |
| Opens whatever handle/socket/file this backend needs, using only fields from config (nothing hardcoded). | |
| void | shutdown () override |
| Releases whatever init() acquired. | |
| void | write (LogLevel level, const char *line, size_t len) override |
| Writes one already-formatted, newline-terminated line. | |
| const char * | name () const override |
| Short identifier for diagnostics (eg. "UDP", "File"). | |
Non-blocking UDP log backend.
Wii only - on GameCube init() reports failure and write() does nothing.
Definition at line 19 of file OgcLoggerUdp.h.
|
overridevirtual |
Opens whatever handle/socket/file this backend needs, using only fields from config (nothing hardcoded).
Returning false leaves the backend registered but inert - Logger will simply skip it in dispatch() rather than treat it as fatal, so eg. a missing SD card or unattached USB Gecko degrades gracefully instead of taking the rest of logging down with it.
Implements LoggingDriver.
Definition at line 91 of file OgcLoggerUdp.cpp.
|
inlineoverridevirtual |
Short identifier for diagnostics (eg. "UDP", "File").
Implements LoggingDriver.
Definition at line 30 of file OgcLoggerUdp.h.
|
overridevirtual |
Releases whatever init() acquired.
Must be safe to call even if init() was never called or returned false.
Implements LoggingDriver.
Definition at line 92 of file OgcLoggerUdp.cpp.
|
overridevirtual |
Writes one already-formatted, newline-terminated line.
len does not include the terminating NUL. Must not allocate.
Implements LoggingDriver.
Definition at line 93 of file OgcLoggerUdp.cpp.