main.misk.logging.LogCollectorModule.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 misk.ReadyService
import misk.ServiceModule
import misk.inject.KAbstractModule
import wisp.logging.LogCollector
import wisp.logging.WispQueuedLogCollector
import com.google.inject.Provider
class LogCollectorModule : KAbstractModule() {
override fun configure() {
bind().to()
bind().to()
bind().toProvider(Provider { WispQueuedLogCollector() })
install(ServiceModule().enhancedBy())
}
}