Extract plantTestTimber

This commit is contained in:
Benoit Marty 2025-09-11 16:58:47 +02:00
parent 95207ee6eb
commit 0b5cb57e46
2 changed files with 20 additions and 7 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright 2025 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.tests.testutils
import timber.log.Timber
fun plantTestTimber() {
Timber.plant(object : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
println("$tag: $message")
}
})
}