main.misk.logging.RealLogCollector.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of misk-testing Show documentation
Show all versions of misk-testing Show documentation
Open source application container in Kotlin
package misk.logging
import com.google.common.util.concurrent.AbstractIdleService
import wisp.logging.LogCollector
import wisp.logging.WispQueuedLogCollector
import jakarta.inject.Inject
import jakarta.inject.Singleton
@Singleton
internal class RealLogCollector @Inject constructor(
private val wispQueuedLogCollector: WispQueuedLogCollector
) : AbstractIdleService(), LogCollector by wispQueuedLogCollector, LogCollectorService {
override fun startUp() {
wispQueuedLogCollector.startUp()
}
override fun shutDown() {
wispQueuedLogCollector.shutDown()
}
}