Logger

object Logger

Simple Middleware for Logging All Requests and Responses

Source:
Logger.scala
class Object
trait Matchable
class Any
Logger.type

Value members

Concrete methods

def apply[F[_] : Async](logHeaders: Boolean, logBody: Boolean, redactHeadersWhen: CIString => Boolean, logAction: Option[String => F[Unit]])(client: Client[F]): Client[F]
def colored[F[_] : Async](logHeaders: Boolean, logBody: Boolean, redactHeadersWhen: CIString => Boolean, requestColor: String, responseColor: Response[F] => String, logAction: Option[String => F[Unit]])(client: Client[F]): Client[F]
def logBodyText[F[_] : Async](logHeaders: Boolean, logBody: Stream[F, Byte] => Option[F[String]], redactHeadersWhen: CIString => Boolean, logAction: Option[String => F[Unit]])(client: Client[F]): Client[F]
def logMessage[F[_], A <: Message[F]](message: A)(logHeaders: Boolean, logBody: Boolean, redactHeadersWhen: CIString => Boolean)(log: String => F[Unit])(implicit F: Async[F]): F[Unit]