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

sttp.client3.logging.Logger.scala Maven / Gradle / Ivy

The newest version!
package sttp.client3.logging

/** Interfaces with a logger system.
  */
trait Logger[F[_]] {
  def apply(level: LogLevel, message: => String): F[Unit]
  def apply(level: LogLevel, message: => String, t: Throwable): F[Unit]
}

sealed trait LogLevel
object LogLevel {
  case object Trace extends LogLevel
  case object Debug extends LogLevel
  case object Info extends LogLevel
  case object Warn extends LogLevel
  case object Error extends LogLevel
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy