1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Forgot a few log functions

This commit is contained in:
Cedric Beust 2016-08-07 17:32:22 -07:00
parent 1fd362c81c
commit e639c72b2f

View file

@ -13,6 +13,8 @@ fun Any.log(level: Int, text: CharSequence, newLine : Boolean = true) {
} }
fun Any.kobaltLog(level: Int, text: CharSequence, newLine : Boolean = true) = log(level, text, newLine) fun Any.kobaltLog(level: Int, text: CharSequence, newLine : Boolean = true) = log(level, text, newLine)
fun Any.kobaltWarn(text: CharSequence) = warn(text)
fun Any.kobaltError(text: CharSequence) = error(text)
fun Any.logWrap(level: Int, text1: CharSequence, text2: CharSequence, function: () -> Unit) { fun Any.logWrap(level: Int, text1: CharSequence, text2: CharSequence, function: () -> Unit) {
if (level <= KobaltLogger.LOG_LEVEL) { if (level <= KobaltLogger.LOG_LEVEL) {