Skip to content

Commit

Permalink
add log i v e ...
Browse files Browse the repository at this point in the history
  • Loading branch information
allens committed Jul 16, 2020
1 parent 0e526f9 commit bc1edeb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions xlog/src/main/java/com/allens/xlog/XLogHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,45 @@ object XLogHelper {
return Builder(context)
}

fun v(msg: String) {
v(msg, null)
}


fun v(format: String, vararg obj: Any?) {
Log.v(Builder.tag, format, *obj)
}


fun f(msg: String) {
f(msg, null)
}


fun f(format: String, vararg obj: Any?) {
Log.f(Builder.tag, format, *obj)
}


fun e(msg: String) {
e(msg, null)
}


fun e(format: String, vararg obj: Any?) {
Log.e(Builder.tag, format, *obj)
}


fun w(msg: String) {
w(msg, null)
}


fun w(format: String, vararg obj: Any?) {
Log.w(Builder.tag, format, *obj)
}


fun i(msg: String) {
i(msg, null)
Expand All @@ -27,4 +66,14 @@ object XLogHelper {
}


fun d(msg: String) {
d(msg, null)
}


fun d(format: String, vararg obj: Any?) {
Log.d(Builder.tag, format, *obj)
}


}

0 comments on commit bc1edeb

Please sign in to comment.