aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Utilities/DokkaLogging.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/Utilities/DokkaLogging.kt')
-rw-r--r--core/src/main/kotlin/Utilities/DokkaLogging.kt31
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")
- }
- }
-}