All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.misk.logging.RealLogCollector.kt Maven / Gradle / Ivy

There is a newer version: 2024.09.17.200749-4708422
Show newest version
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()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy