testApi.logger.TestLogger.kt Maven / Gradle / Ivy
package org.jetbrains.dokka.testApi.logger
import org.jetbrains.dokka.utilities.DokkaLogger
class TestLogger(private val logger: DokkaLogger) : DokkaLogger {
override var warningsCount: Int by logger::warningsCount
override var errorsCount: Int by logger::errorsCount
private var _debugMessages = mutableListOf()
val debugMessages: List get() = _debugMessages.toList()
private var _infoMessages = mutableListOf()
val infoMessages: List get() = _infoMessages.toList()
private var _progressMessages = mutableListOf()
val progressMessages: List get() = _progressMessages.toList()
private var _warnMessages = mutableListOf()
val warnMessages: List get() = _warnMessages.toList()
private var _errorMessages = mutableListOf()
val errorMessages: List get() = _errorMessages.toList()
override fun debug(message: String) {
_debugMessages.add(message)
logger.debug(message)
}
override fun info(message: String) {
_infoMessages.add(message)
logger.info(message)
}
override fun progress(message: String) {
_progressMessages.add(message)
logger.progress(message)
}
override fun warn(message: String) {
_warnMessages.add(message)
logger.warn(message)
}
override fun error(message: String) {
_errorMessages.add(message)
logger.error(message)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy