libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
WutLoggerOSReport.h
1/****************************************************************************
2 * Platform Abstraction Layer
3 * Daryl Borth 2026
4 * WutLoggerOSReport.h
5 *
6 * Wraps OSReport(), picked up by Cemu's log window and Decaf's console
7 * capture. Always safe to register - no hardware/network dependency.
8 ***************************************************************************/
9#pragma once
10
11#include "../Logger.h"
12
16{
17 public:
18 bool init(const LogConfig & config) override;
19 void shutdown() override;
20 void write(LogLevel level, const char * line, size_t len) override;
21 const char * name() const override { return "OSReport"; }
22};
Abstract backend a Logger fans a formatted line out to.
Definition Logger.h:153
Log backend writing to the console debug output via OSReport.
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").
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
Full runtime configuration for the Logger.
Definition Logger.h:101