|
| LogMode | mode = LogMode::File |
| | Which backend(s) receive log lines; see LogMode.
|
| |
| LogLevel | level = LogLevel::Info |
| | Minimum severity that is logged.
|
| |
| uint32_t | multiBackendMask = LOGGER_OSREPORT |
| | Only consulted when mode == LogMode::Multi.
|
| |
| bool | mirrorToOSReport = true |
| | Regardless of mode/multiBackendMask, also mirror every line to the console OS default backend (OSReport/SYS_Report) if one is registered.
|
| |
| const char * | targetIp = "192.168.1.100" |
| | Destination IPv4 address for the UDP backend.
|
| |
| uint16_t | targetPort = 4405 |
| | Destination UDP port for the UDP backend.
|
| |
| bool | nonBlocking = true |
| | socket is always created non-blocking; kept for clarity/future use
|
| |
| int | geckoChannel = 1 |
| | EXI channel (GC/Wii): 0 = memory card slot A, 1 = memory card slot B (where a USB Gecko is normally inserted).
|
| |
| uint32_t | serialBaudRate = 115200 |
| | Informational only on GC/Wii (EXI has a fixed protocol rate); used as the requested baud rate for a Wii U USB-to-TTL/USBSerialLogger backend, if one is registered.
|
| |
| char | filePath [1024] = "sd:/debug.log" |
| | Path of the log file for the file backend. Each platform's init() points this at debug.log on the first mounted device.
|
| |
| LogFlushPolicy | flushPolicy = LogFlushPolicy::Immediate |
| | How often the file backend flushes to storage.
|
| |
| uint32_t | flushEveryNWrites = 16 |
| | Flush interval in writes; only used when flushPolicy is LogFlushPolicy::EveryNWrites.
|
| |
| bool | includeLevelTag = true |
| | prefix each line with "[DEBUG] "/"[INFO] "/etc.
|
| |
| bool | includeSequenceNumber = false |
| | prefix each line with a monotonic call counter, useful for spotting dropped UDP packets
|
| |
| bool | includeTimestamp = true |
| | prefix each line with the time since process start as "[secs.millis]"
|
| |
Full runtime configuration for the Logger.
Nothing backend-specific is ever hardcoded in a backend implementation - it all comes from here, supplied by app code (or left at these defaults, which are deliberately safe: log to a file on the first mounted device, mirrored to the console debug output; nothing that touches the network or external hardware).
Definition at line 100 of file Logger.h.