Coverage Summary for Class: Logger (com.stslex.aproselection.core.core)
Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
Logger |
0%
(0/1)
|
0%
(0/4)
|
0%
(0/8)
|
0%
(0/10)
|
0%
(0/38)
|
package com.stslex.aproselection.core.core
import android.util.Log
object Logger {
private const val DEFAULT_TAG = "NOTES"
fun exception(
throwable: Throwable,
tag: String? = null,
message: String? = null
) {
val currentTag = "$DEFAULT_TAG:${tag.orEmpty()}"
Log.e(
currentTag,
message ?: throwable.message.orEmpty(),
throwable,
)
}
fun debug(
message: String,
tag: String? = null,
) {
val currentTag = "$DEFAULT_TAG:${tag.orEmpty()}"
Log.d(currentTag, message)
}
}