diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-07-08 16:47:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 16:47:11 +0200 |
commit | 0cdb6d4de754ef5381de09be55ebdafa6868caca (patch) | |
tree | d3d742e66df4776ffd3aeb584b3b57d5709a3130 /plugins/base/src/main/kotlin/DokkaBase.kt | |
parent | 393491918eb31fd1896c747e636965f917754b1b (diff) | |
download | dokka-0cdb6d4de754ef5381de09be55ebdafa6868caca.tar.gz dokka-0cdb6d4de754ef5381de09be55ebdafa6868caca.tar.bz2 dokka-0cdb6d4de754ef5381de09be55ebdafa6868caca.zip |
Ignore messages emitted by the IntelliJ Logger (#2563)
Diffstat (limited to 'plugins/base/src/main/kotlin/DokkaBase.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/DokkaBase.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/DokkaBase.kt b/plugins/base/src/main/kotlin/DokkaBase.kt index 0443b136..377470d1 100644 --- a/plugins/base/src/main/kotlin/DokkaBase.kt +++ b/plugins/base/src/main/kotlin/DokkaBase.kt @@ -34,6 +34,7 @@ import org.jetbrains.dokka.base.transformers.pages.tags.SinceKotlinTagContentPro import org.jetbrains.dokka.base.translators.descriptors.DefaultExternalDocumentablesProvider import org.jetbrains.dokka.base.translators.descriptors.ExternalClasslikesTranslator import org.jetbrains.dokka.base.translators.descriptors.ExternalDocumentablesProvider +import org.jetbrains.dokka.base.utils.NoopIntellijLoggerFactory import org.jetbrains.dokka.plugability.DokkaPlugin import org.jetbrains.dokka.transformers.documentation.PreMergeDocumentableTransformer import org.jetbrains.dokka.transformers.pages.PageTransformer @@ -272,4 +273,12 @@ class DokkaBase : DokkaPlugin() { val defaultExternalClasslikesTranslator by extending { externalClasslikesTranslator providing ::DefaultDescriptorToDocumentableTranslator } + + private companion object { + init { + // Suppress messages emitted by the IntelliJ logger since + // there's not much the end user can do about it + com.intellij.openapi.diagnostic.Logger.setFactory(NoopIntellijLoggerFactory()) + } + } } |