diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-27 17:45:33 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-28 12:53:21 +0100 |
commit | d37cf2f32840779706154a3cddbb2239cd80fd84 (patch) | |
tree | 97e2199624100550456e218a02d1e1590581b781 /core/src/main/kotlin/Utilities/DokkaLogging.kt | |
parent | 970bb62105af3828234eb871230ee9c1cd216af7 (diff) | |
download | dokka-d37cf2f32840779706154a3cddbb2239cd80fd84.tar.gz dokka-d37cf2f32840779706154a3cddbb2239cd80fd84.tar.bz2 dokka-d37cf2f32840779706154a3cddbb2239cd80fd84.zip |
Cleaning package naming
Diffstat (limited to 'core/src/main/kotlin/Utilities/DokkaLogging.kt')
-rw-r--r-- | core/src/main/kotlin/Utilities/DokkaLogging.kt | 31 |
1 files changed, 0 insertions, 31 deletions
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") - } - } -} |