Skip to content

Commit

Permalink
refactor: kotlinify log
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Jan 9, 2024
1 parent 9ff70ed commit da5d168
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package android.util

object Log {
@JvmStatic
fun d(tag: String, msg: String): Int {
println("DEBUG: $tag: $msg")
return 0
}

@JvmStatic
fun i(tag: String, msg: String): Int {
println("INFO: $tag: $msg")
return 0
}

@JvmStatic
fun w(tag: String, msg: String): Int {
println("WARN: $tag: $msg")
return 0
}

@JvmStatic
fun e(tag: String, msg: String): Int {
println("ERROR: $tag: $msg")
return 0
}
}

0 comments on commit da5d168

Please sign in to comment.