Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 4731f50

Browse files
committed
Logcat Android 11; optional live logging
1 parent 87aa713 commit 4731f50

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

owncloudComLibrary/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
api 'com.squareup.okhttp3:okhttp:4.6.0'
77
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
88
api 'com.gitlab.ownclouders:dav4android:oc_support_2.1.5'
9-
api 'com.github.AppDevNext.Logcat:LogcatCore:2.2.2'
9+
api 'com.github.AppDevNext.Logcat:LogcatCore:2.5.0'
1010

1111
// Moshi
1212
implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion") {

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/utils/LoggingHelper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.owncloud.android.lib.common.utils
22

3+
import info.hannes.timber.DebugTree
34
import info.hannes.timber.FileLoggingTree
45
import info.hannes.timber.fileLoggingTree
56
import timber.log.Timber
@@ -14,6 +15,7 @@ object LoggingHelper {
1415
if (!directory.exists())
1516
directory.mkdirs()
1617
Timber.plant(FileLoggingTree(directory, filename = storagePath))
18+
Timber.plant(DebugTree())
1719
}
1820

1921
fun stopLogging() {

0 commit comments

Comments
 (0)