Instance Method
setLogLevel(_:)
Choose which SDK log levels are output. Takes effect at once.
nonisolated func setLogLevel(_ levels: Set<RevueLogLevel>)Discussion
Covers the network core (revuekit / toxcore / mqtt / presence) and the SDK’s own log lines. This is a selection, not a threshold: [.warning] does not include .error. An empty set turns all SDK output off. The default is [.warning, .error].
The setting belongs to the process: it can be called before initialize(_:), and neither initialize(_:) nor destroy(_:) changes it. Any thread may call it.
On iOS a running Broadcast Upload Extension follows the selection too, if the app has an App Group. Without one, the extension logs [.warning, .error].
Revue.shared.setLogLevel([.debug, .error])