Set default logger name (simplifies logging with Log.info { } etc.)

This commit is contained in:
dankito 2024-08-28 18:48:59 +02:00
parent 53f7847146
commit 5cf086485e
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import net.codinux.banking.ui.composables.TransactionsList
import net.codinux.banking.ui.dialogs.AddAccountDialog import net.codinux.banking.ui.dialogs.AddAccountDialog
import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.DI import net.codinux.banking.ui.config.DI
import net.codinux.log.LoggerFactory
import org.jetbrains.compose.ui.tooling.preview.Preview import org.jetbrains.compose.ui.tooling.preview.Preview
private val typography = Typography( private val typography = Typography(
@ -28,6 +29,8 @@ private val typography = Typography(
@Composable @Composable
@Preview @Preview
fun App() { fun App() {
LoggerFactory.defaultLoggerName = "net.codinux.banking.ui.Bankmeister"
val colors = MaterialTheme.colors.copy(secondary = Colors.CodinuxSecondaryColor, onSecondary = Color.White) val colors = MaterialTheme.colors.copy(secondary = Colors.CodinuxSecondaryColor, onSecondary = Color.White)
var showAddAccountDialog by remember { mutableStateOf(false) } var showAddAccountDialog by remember { mutableStateOf(false) }