From e639c72b2f46a81422ab730be75b9cdeef151e3e Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 7 Aug 2016 17:32:22 -0700 Subject: [PATCH] Forgot a few log functions --- .../src/main/kotlin/com/beust/kobalt/misc/KobaltLogger.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/KobaltLogger.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/KobaltLogger.kt index 07729e12..90b07e80 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/KobaltLogger.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/KobaltLogger.kt @@ -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.kobaltWarn(text: CharSequence) = warn(text) +fun Any.kobaltError(text: CharSequence) = error(text) fun Any.logWrap(level: Int, text1: CharSequence, text2: CharSequence, function: () -> Unit) { if (level <= KobaltLogger.LOG_LEVEL) {