libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
WutLoggerOSReport.cpp
1/****************************************************************************
2 * Platform Abstraction Layer
3 * Daryl Borth 2026
4 * WutLoggerOSReport.cpp
5 ***************************************************************************/
6#include "WutLoggerOSReport.h"
7#include <coreinit/debug.h>
8
9bool WutLoggerOSReport::init(const LogConfig &) { return true; }
11
12void WutLoggerOSReport::write(LogLevel, const char * line, size_t)
13{
14 OSReport("%s", line);
15}
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.
bool init(const LogConfig &config) override
Opens whatever handle/socket/file this backend needs, using only fields from config (nothing hardcode...
LogLevel
Severity of a single log call.
Definition Logger.h:45
@ OSReport
OSReport (Wii U) / SYS_Report (GC+Wii) - always safe, no hardware required.
Definition Logger.h:64
Full runtime configuration for the Logger.
Definition Logger.h:101