mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
delete all *.log in directory
This commit is contained in:
parent
fa4db38a41
commit
10a7bdbc4d
@ -8,7 +8,7 @@ dependencies {
|
|||||||
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
||||||
api 'com.gitlab.ownclouders:dav4android:oc_support_1.0.1'
|
api 'com.gitlab.ownclouders:dav4android:oc_support_1.0.1'
|
||||||
api 'com.github.hannesa2:Logcat:1.5.4'
|
api 'com.github.hannesa2:Logcat:1.5.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
allOpen {
|
allOpen {
|
||||||
|
@ -8,7 +8,7 @@ import java.io.File
|
|||||||
object LoggingHelper {
|
object LoggingHelper {
|
||||||
|
|
||||||
fun startLogging(directory: File, storagePath: String) {
|
fun startLogging(directory: File, storagePath: String) {
|
||||||
Timber.forest().fileLoggingTree()?.let {
|
fileLoggingTree()?.let {
|
||||||
Timber.forest().drop(Timber.forest().indexOf(it))
|
Timber.forest().drop(Timber.forest().indexOf(it))
|
||||||
}
|
}
|
||||||
if (!directory.exists())
|
if (!directory.exists())
|
||||||
@ -17,7 +17,7 @@ object LoggingHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun stopLogging() {
|
fun stopLogging() {
|
||||||
Timber.forest().fileLoggingTree()?.let {
|
fileLoggingTree()?.let {
|
||||||
Timber.forest().drop(Timber.forest().indexOf(it))
|
Timber.forest().drop(Timber.forest().indexOf(it))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user