sttp.client3.logging.Logger.scala Maven / Gradle / Ivy
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
}