libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
OgcLoggerSysReport.h
1/****************************************************************************
2 * Platform Abstraction Layer
3 * Daryl Borth 2026
4 * OgcLoggerSysReport.h
5 *
6 * Wraps SYS_Report(), the libogc console-output call intercepted by
7 * Dolphin's log window and picked up over a real console's debug UART.
8 * Shared, unmodified, by both GameCubePlatform and WiiPlatform - SYS_Report
9 * itself doesn't differ between HW_DOL and HW_RVL.
10 ***************************************************************************/
11#pragma once
12
13#include "../Logger.h"
14
18{
19 public:
20 bool init(const LogConfig & config) override;
21 void shutdown() override;
22 void write(LogLevel level, const char * line, size_t len) override;
23 const char * name() const override { return "SYS_Report"; }
24};
Abstract backend a Logger fans a formatted line out to.
Definition Logger.h:153
Log backend writing to the console debug output via SYS_Report.
const char * name() const override
Short identifier for diagnostics (eg. "UDP", "File").
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