setLogLevels
Sets logging levels independently for selected media components.
Declaration
public func setLogLevels(
_ levels: [STMediaComponent: STLogLevel]
)Overview
Only components present in the supplied dictionary are changed; existing settings for other components are preserved. Settings are retained even when the corresponding player or recorder component has not yet been initialized, then propagated when those components become available.
mediaRunner.setLogLevels([
.mediaRunner: .debug,
.audioPlayer: .verbose,
.speechRecognition: .error
])
This provides focused diagnostics without requiring verbose logging from the entire media stack.
Apple Unified Logging
SpeechTiles Andamento uses Apple Unified Logging through the os logging APIs. Messages can appear in Xcode during development and, depending on severity and system configuration, in the operating system’s unified log store.
On macOS, open Console.app (Applications → Utilities), select your Mac, start live streaming, and filter by the application process or logging subsystem. You can also use the macOS log command-line utility. Apple determines which messages are retained and for how long; debug messages may not be persisted.
STLogLevel.none suppresses Andamento-generated logging at all levels. It does not suppress operating-system messages or logging independently generated by Apple frameworks.
For logging levels and additional details, see STLogLevel and Apple Unified Logging documentation.