[6.0.0] log

This commit is contained in:
zhongchao
2023-08-24 11:16:26 +08:00
parent 4beb4a3532
commit c377ecc260
94 changed files with 2677 additions and 834 deletions

View File

@@ -4,24 +4,28 @@ import com.mogo.eagle.core.utilcode.mogo.logger.scene.Scene.Companion.scene
object CallerLogger {
@JvmStatic
fun i(tag: String, message: Any? = null, vararg args: Any?) {
if (scene.check(tag)) {
Logger.i(tag, message.toString(), *args)
}
}
@JvmStatic
fun d(tag: String, message: Any? = null, vararg args: Any?) {
if (scene.check(tag)) {
Logger.d(tag, message.toString(), *args)
}
}
@JvmStatic
fun w(tag: String, message: Any? = null, vararg args: Any?) {
if (scene.check(tag)) {
Logger.w(tag, message.toString(), *args)
}
}
@JvmStatic
fun e(tag: String, message: Any? = null, vararg args: Any?) {
if (scene.check(tag)) {
Logger.e(tag, message.toString(), *args)