From ab4197547838b9e6314485453993ae127ebbc9cf Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 14 May 2022 19:46:49 +0200 Subject: [PATCH] Control log level with build flags, update README --- Makefile | 5 +++++ README.md | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 9e18205..30760c0 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,11 @@ CXXFLAGS += -DDEBUG -g CFLAGS += -DDEBUG -g endif +ifeq ($(DEBUG),VERBOSE) +CXXFLAGS += -DDEBUG -DVERBOSE_DEBUG -g +CFLAGS += -DDEBUG -DVERBOSE_DEBUG -g +endif + LIBS := -lwups -lwut -liosuhax #------------------------------------------------------------------------------- diff --git a/README.md b/README.md index 8b4f2ef..a9c5157 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,17 @@ 1. Copy the file `ftpiiu.wps` into `sd:/wiiu/environments/[ENVIRONMENT]/plugins`. 2. Requires the [WiiUPluginLoaderBackend](https://github.com/wiiu-env/WiiUPluginLoaderBackend) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`. +## Buildflags + +### Logging +Building via `make` only logs errors (via OSReport). To enable logging via the [LoggingModule](https://github.com/wiiu-env/LoggingModule) set `DEBUG` to `1` or `VERBOSE`. + +`make` Logs errors only (via OSReport). +`make DEBUG=1` Enables information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule). +`make DEBUG=VERBOSE` Enables verbose information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule). + +If the [LoggingModule](https://github.com/wiiu-env/LoggingModule) is not present, it'll fallback to UDP (Port 4405) and [CafeOS](https://github.com/wiiu-env/USBSerialLoggingModule) logging. + ## Building using the Dockerfile It's possible to use a docker image for building. This way you don't need anything installed on your host system.