aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-15 16:38:25 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-15 17:56:04 +0200
commite32e42e084d4e150387a7e9ec4ee00ae3974babd (patch)
tree0fd84a7e6c6580e36ca7362ef432a79ed94e1366 /runners/maven-plugin/src/main/kotlin
parentddccb8d23057d4eb14d5e3e35152e1f4aa00a77d (diff)
downloaddokka-e32e42e084d4e150387a7e9ec4ee00ae3974babd.tar.gz
dokka-e32e42e084d4e150387a7e9ec4ee00ae3974babd.tar.bz2
dokka-e32e42e084d4e150387a7e9ec4ee00ae3974babd.zip
Use DokkaLogger instead of println and adjust log levels for less verbosity by default
Diffstat (limited to 'runners/maven-plugin/src/main/kotlin')
-rw-r--r--runners/maven-plugin/src/main/kotlin/MavenDokkaLogger.kt14
1 files changed, 1 insertions, 13 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/MavenDokkaLogger.kt b/runners/maven-plugin/src/main/kotlin/MavenDokkaLogger.kt
index 403fc773..4b5f4fa9 100644
--- a/runners/maven-plugin/src/main/kotlin/MavenDokkaLogger.kt
+++ b/runners/maven-plugin/src/main/kotlin/MavenDokkaLogger.kt
@@ -12,16 +12,4 @@ class MavenDokkaLogger(val log: Log) : DokkaLogger {
override fun progress(message: String) = log.info(message)
override fun warn(message: String) = log.warn(message).also { warningsCount++ }
override fun error(message: String) = log.error(message).also { errorsCount++ }
-
- override fun report() {
- if (warningsCount > 0 || errorsCount > 0) {
- log.info("Generation completed with $warningsCount warning" +
- (if(warningsCount == 1) "" else "s") +
- " and $errorsCount error" +
- if(errorsCount == 1) "" else "s"
- )
- } else {
- log.info("generation completed successfully")
- }
- }
-} \ No newline at end of file
+}