diff options
Diffstat (limited to 'library/src/main/kotlin/ca/allanwang/kau/logging')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt | 6 | ||||
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt | 19 |
2 files changed, 0 insertions, 25 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt b/library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt deleted file mode 100644 index 4fa3360..0000000 --- a/library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt +++ /dev/null @@ -1,6 +0,0 @@ -package ca.allanwang.kau.logging - -/** - * Created by Allan Wang on 2017-06-19. - */ -object KL : TimberLogger("KAU")
\ No newline at end of file diff --git a/library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt b/library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt deleted file mode 100644 index 5969fd5..0000000 --- a/library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt +++ /dev/null @@ -1,19 +0,0 @@ -package ca.allanwang.kau.logging - -import timber.log.Timber - - -/** - * Created by Allan Wang on 2017-05-28. - * - * Timber extension that will embed the tag as part of the message for each log item - */ -open class TimberLogger(tag: String) { - internal val TAG = "$tag: %s" - fun e(s: String) = Timber.e(TAG, s) - fun e(t: Throwable, s: String = "error") = Timber.e(t, TAG, s) - fun d(s: String) = Timber.d(TAG, s) - fun i(s: String) = Timber.i(TAG, s) - fun v(s: String) = Timber.v(TAG, s) - fun eThrow(s: String) = e(Throwable(s)) -}
\ No newline at end of file |