From 5cf086485e2e0818b10b27040e8c10fec34b0f41 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 28 Aug 2024 18:48:59 +0200 Subject: [PATCH] Set default logger name (simplifies logging with Log.info { } etc.) --- composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt index dbbef41..f2692c0 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt @@ -19,6 +19,7 @@ import net.codinux.banking.ui.composables.TransactionsList import net.codinux.banking.ui.dialogs.AddAccountDialog import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.DI +import net.codinux.log.LoggerFactory import org.jetbrains.compose.ui.tooling.preview.Preview private val typography = Typography( @@ -28,6 +29,8 @@ private val typography = Typography( @Composable @Preview fun App() { + LoggerFactory.defaultLoggerName = "net.codinux.banking.ui.Bankmeister" + val colors = MaterialTheme.colors.copy(secondary = Colors.CodinuxSecondaryColor, onSecondary = Color.White) var showAddAccountDialog by remember { mutableStateOf(false) }