libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
OgcLoggerUsbGecko Class Reference

Log backend for a USB Gecko adapter over EXI, via usbgecko.c. More...

#include <OgcLoggerUsbGecko.h>

Inheritance diagram for OgcLoggerUsbGecko:
[legend]

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").
 

Detailed Description

Log backend for a USB Gecko adapter over EXI, via usbgecko.c.

Definition at line 23 of file OgcLoggerUsbGecko.h.

Member Function Documentation

◆ init()

bool OgcLoggerUsbGecko::init ( const LogConfig & config)
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 23 of file OgcLoggerUsbGecko.cpp.

◆ name()

const char * OgcLoggerUsbGecko::name ( ) const
inlineoverridevirtual

Short identifier for diagnostics (eg. "UDP", "File").

Implements LoggingDriver.

Definition at line 29 of file OgcLoggerUsbGecko.h.

◆ shutdown()

void OgcLoggerUsbGecko::shutdown ( )
overridevirtual

Releases whatever init() acquired.

Must be safe to call even if init() was never called or returned false.

Implements LoggingDriver.

Definition at line 31 of file OgcLoggerUsbGecko.cpp.

◆ write()

void OgcLoggerUsbGecko::write ( LogLevel level,
const char * line,
size_t len )
overridevirtual

Writes one already-formatted, newline-terminated line.

len does not include the terminating NUL. Must not allocate.

Implements LoggingDriver.

Definition at line 37 of file OgcLoggerUsbGecko.cpp.


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