From d37cf2f32840779706154a3cddbb2239cd80fd84 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Wed, 27 Nov 2019 17:45:33 +0100 Subject: Cleaning package naming --- core/src/main/kotlin/Utilities/DokkaLogging.kt | 31 -------------------------- 1 file changed, 31 deletions(-) delete mode 100644 core/src/main/kotlin/Utilities/DokkaLogging.kt (limited to 'core/src/main/kotlin/Utilities/DokkaLogging.kt') diff --git a/core/src/main/kotlin/Utilities/DokkaLogging.kt b/core/src/main/kotlin/Utilities/DokkaLogging.kt deleted file mode 100644 index d0d1bff6..00000000 --- a/core/src/main/kotlin/Utilities/DokkaLogging.kt +++ /dev/null @@ -1,31 +0,0 @@ -package org.jetbrains.dokka - -interface DokkaLogger { - fun debug(message: String) - fun info(message: String) - fun progress(message: String) - fun warn(message: String) - fun error(message: String) -} - -object DokkaConsoleLogger : DokkaLogger { - var warningCount: Int = 0 - - override fun debug(message: String)= println(message) - - override fun progress(message: String) = println("PROGRESS: $message") - - override fun info(message: String) = println(message) - - override fun warn(message: String) = println("WARN: $message").also { warningCount++ } - - override fun error(message: String) = println("ERROR: $message") - - fun report() { - if (warningCount > 0) { - println("generation completed with $warningCount warnings") - } else { - println("generation completed successfully") - } - } -} -- cgit