diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index bf6b3bc..df2b800 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -83,6 +83,8 @@ kotlin { desktopMain.dependencies { implementation(compose.desktop.currentOs) implementation(libs.kotlinx.coroutines.swing) + + implementation(libs.logback) } } } diff --git a/composeApp/src/desktopMain/resources/logback.xml b/composeApp/src/desktopMain/resources/logback.xml new file mode 100644 index 0000000..7bfd241 --- /dev/null +++ b/composeApp/src/desktopMain/resources/logback.xml @@ -0,0 +1,43 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + data/logs/Bankmeister-${bySecond}.log + + + %-4relative [%thread] %-5level %logger{35} - %msg%n + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5d68080..b2e8584 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,9 +5,11 @@ kotlinx-coroutines = "1.8.1" banking-client = "0.5.1-SNAPSHOT" kcsv = "2.2.0" -klf = "1.6.0" kotlinx-serializable = "1.7.1" +klf = "1.6.0" +logback = "1.5.7" + agp = "8.2.2" android-compileSdk = "34" android-minSdk = "24" @@ -29,9 +31,11 @@ banking-client-model = { group = "net.codinux.banking.client", name = "banking-c fints4k-banking-client = { group = "net.codinux.banking.client", name = "fints4k-banking-client", version.ref = "banking-client" } kcsv = { group = "net.codinux.csv", name = "kcsv", version.ref = "kcsv" } -klf = { group = "net.codinux.log", name = "klf", version.ref = "klf" } kotlinx-serializable = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinx-serializable" } +klf = { group = "net.codinux.log", name = "klf", version.ref = "klf" } +logback = { group = "ch.qos.logback", name = "logback-classic", version.ref = "logback" } + androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidx-core-ktx" } androidx-test-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-junit" } androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "androidx-espresso-core" }