aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Utilities
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2019-11-14 16:13:30 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2019-11-25 16:24:16 +0100
commite7c23a65606a5a844d1664552c935590a06bf58d (patch)
treef107c49acef882e4b21e8b93d1a43c2981d56458 /core/src/main/kotlin/Utilities
parentdac6ba2a589aa1e8a9f4a9c7af32026be77776b3 (diff)
downloaddokka-e7c23a65606a5a844d1664552c935590a06bf58d.tar.gz
dokka-e7c23a65606a5a844d1664552c935590a06bf58d.tar.bz2
dokka-e7c23a65606a5a844d1664552c935590a06bf58d.zip
Few fixes for logger
Diffstat (limited to 'core/src/main/kotlin/Utilities')
-rw-r--r--core/src/main/kotlin/Utilities/DokkaLogging.kt12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Utilities/DokkaLogging.kt b/core/src/main/kotlin/Utilities/DokkaLogging.kt
index 1ef52837..d0d1bff6 100644
--- a/core/src/main/kotlin/Utilities/DokkaLogging.kt
+++ b/core/src/main/kotlin/Utilities/DokkaLogging.kt
@@ -1,7 +1,9 @@
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)
}
@@ -9,11 +11,13 @@ interface DokkaLogger {
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")
- warningCount++
- }
+
+ override fun warn(message: String) = println("WARN: $message").also { warningCount++ }
override fun error(message: String) = println("ERROR: $message")