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

Commit

Permalink
Logcat Android 11; optional live logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 15, 2021
1 parent bf6f93f commit 30fa6e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion owncloudComLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies {
api 'com.squareup.okhttp3:okhttp:4.6.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
api 'com.gitlab.ownclouders:dav4android:oc_support_2.1.5'
api 'com.github.AppDevNext.Logcat:LogcatCore:2.2.2'
api 'com.github.AppDevNext.Logcat:LogcatCore:2.8.0'

// Moshi
implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.owncloud.android.lib.common.utils

import info.hannes.timber.DebugTree
import info.hannes.timber.FileLoggingTree
import info.hannes.timber.fileLoggingTree
import timber.log.Timber
Expand All @@ -14,6 +15,7 @@ object LoggingHelper {
if (!directory.exists())
directory.mkdirs()
Timber.plant(FileLoggingTree(directory, filename = storagePath))
Timber.plant(DebugTree())
}

fun stopLogging() {
Expand Down

0 comments on commit 30fa6e9

Please sign in to comment.