From 9e15f07aefe6ea1f366466c6721b92e77e3f1b41 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Tue, 22 Jun 2021 15:17:55 +0200 Subject: Logging in CLI (#1976) --- plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt | 4 ++-- .../base/base-test-utils/src/main/kotlin/testRunner/baseTestApi.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/base/base-test-utils/src/main') diff --git a/plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt b/plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt index 09ea6083..67ba2dd3 100644 --- a/plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt +++ b/plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt @@ -14,8 +14,8 @@ import org.jetbrains.dokka.base.transformers.pages.comments.CommentsToContentCon fun testPage(callback: PageContentBuilder.DocumentableContentBuilder.() -> Unit): RawTestPage { val content = PageContentBuilder( EmptyCommentConverter, - KotlinSignatureProvider(EmptyCommentConverter, DokkaConsoleLogger), - DokkaConsoleLogger + KotlinSignatureProvider(EmptyCommentConverter, DokkaConsoleLogger()), + DokkaConsoleLogger() ).contentFor( DRI.topLevel, emptySet(), diff --git a/plugins/base/base-test-utils/src/main/kotlin/testRunner/baseTestApi.kt b/plugins/base/base-test-utils/src/main/kotlin/testRunner/baseTestApi.kt index 792754fb..25f6656e 100644 --- a/plugins/base/base-test-utils/src/main/kotlin/testRunner/baseTestApi.kt +++ b/plugins/base/base-test-utils/src/main/kotlin/testRunner/baseTestApi.kt @@ -12,6 +12,7 @@ import org.jetbrains.dokka.testApi.logger.TestLogger import org.jetbrains.dokka.testApi.testRunner.* import org.jetbrains.dokka.utilities.DokkaConsoleLogger import org.jetbrains.dokka.utilities.DokkaLogger +import org.jetbrains.dokka.utilities.LoggingLevel class BaseDokkaTestGenerator( configuration: DokkaConfiguration, @@ -101,7 +102,7 @@ class BaseTestBuilder : TestBuilder() { ) } -abstract class BaseAbstractTest(logger: TestLogger = TestLogger(DokkaConsoleLogger)) : AbstractTest( +abstract class BaseAbstractTest(logger: TestLogger = TestLogger(DokkaConsoleLogger(LoggingLevel.DEBUG))) : AbstractTest( ::BaseTestBuilder, ::BaseDokkaTestGenerator, logger, -- cgit