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

coursier.jvm.JvmCacheLogger.scala Maven / Gradle / Ivy

There is a newer version: 2.1.13
Show newest version
package coursier.jvm

import java.io.File

trait JvmCacheLogger {
  def extracting(id: String, origin: String, dest: File): Unit
  def extracted(id: String, origin: String, dest: File): Unit
  def extractionFailed(id: String, origin: String, dest: File, error: Throwable): Unit
}

object JvmCacheLogger {

  private lazy val nop0 =
    new JvmCacheLogger {
      def extracting(id: String, origin: String, dest: File): Unit = {}
      def extracted(id: String, origin: String, dest: File): Unit = {}
      def extractionFailed(id: String, origin: String, dest: File, error: Throwable): Unit = {}
    }

  def nop: JvmCacheLogger =
    nop0
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy