libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
OgcLoggerSysReport.cpp
1/****************************************************************************
2 * Platform Abstraction Layer
3 * Daryl Borth 2026
4 * OgcLoggerSysReport.cpp
5 ***************************************************************************/
6#include "OgcLoggerSysReport.h"
7#include <ogc/system.h>
8
9// No handle to open/close and nothing that can meaningfully fail - always
10// considered active once selected.
11bool OgcLoggerSysReport::init(const LogConfig & /*config*/) { return true; }
13
14void OgcLoggerSysReport::write(LogLevel /*level*/, const char * line, size_t /*len*/)
15{
16 // line is already NUL-terminated by Logger::log() - no format
17 // string risk from passing it as the format argument here, but "%s"
18 // is used anyway so a future caller can never introduce one.
19 SYS_Report("%s", line);
20}
bool init(const LogConfig &config) override
Opens whatever handle/socket/file this backend needs, using only fields from config (nothing hardcode...
void write(LogLevel level, const char *line, size_t len) override
Writes one already-formatted, newline-terminated line.
void shutdown() override
Releases whatever init() acquired.
LogLevel
Severity of a single log call.
Definition Logger.h:45
Full runtime configuration for the Logger.
Definition Logger.h:101