Add configurable logger for RiotSwiftUI

This commit is contained in:
David Langley
2021-09-09 22:42:00 +01:00
parent c80dfcd1d0
commit 59a54654b1
9 changed files with 193 additions and 10 deletions
@@ -75,6 +75,7 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
// MARK: - Public methods
func start() {
self.setupLogger()
self.setupTheme()
if BuildSettings.enableSideMenu {
@@ -100,6 +101,9 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
}
// MARK: - Private methods
private func setupLogger() {
UILog.configure(logger: MatrixSDKLogger.self)
}
private func setupTheme() {
ThemeService.shared().themeId = RiotSettings.shared.userInterfaceTheme