Logger
object Logger
- Source:
- Logger.scala
Value members
Concrete methods
java.lang.Integer.toHexString(b.&(255))))
Some.apply[F[String]](bodyStream.compile[[x>:Nothing<:Any]=>F[x],[x>:Nothing<:Any]=>F[x],String](target[[x>:Nothing<:Any]=>F[x]](forConcurrent[[x>:Nothing<:Any]=>F[x]](evidence$1))).string(refl[String]))
}elseNone" class="documentableAnchor">
def java.lang.Integer.toHexString(b.&(255))))
Some.apply[F[String]](bodyStream.compile[[x>:Nothing<:Any]=>F[x],[x>:Nothing<:Any]=>F[x],String](target[[x>:Nothing<:Any]=>F[x]](forConcurrent[[x>:Nothing<:Any]=>F[x]](evidence$1))).string(refl[String]))
}elseNone" class="documentableName ">defaultLogBody[F[_] : Concurrent](message: Message[F])(logBody: Boolean): Option[F[String]]
- Source:
- Logger.scala
def logMessage[F[_]](message: Message[F])(logHeaders: Boolean, logBody: Boolean, redactHeadersWhen: CIString => Boolean)(log: String => F[Unit])(implicit F: Concurrent[F]): F[Unit]
- Source:
- Logger.scala
:Nothing<:[_$41>:Nothing<:Any]=>Any]=>
_root_.scala.StringContext.apply("","","").s(resp.httpVersion,resp.status)
}
valheaders:String=defaultLogHeaders[F](message)(logHeaders,redactHeadersWhen)
valbodyText:F[String]=logBodyText.apply(message.body)match{
caseSome(textF)=>
toFunctorOps[F,String](textF)(F).map[String](((text:String)=>_root_.scala.StringContext.apply("body=\"","\"").s(text)))
caseNone=>
F.pure[String]("")
}
defspaced(x:String):String=if(x.isEmpty())xelse_root_.scala.StringContext.apply("","").s(x)
toFlatMapOps[F,String](toFunctorOps[F,String](bodyText)(F).map[String](((body:String)=>_root_.scala.StringContext.apply("","","","").s(prelude,spaced(headers),spaced(body)))))(F).flatMap[Unit](log)
}" class="documentableAnchor">
def :Nothing<:[_$41>:Nothing<:Any]=>Any]=>
_root_.scala.StringContext.apply("","","").s(resp.httpVersion,resp.status)
}
valheaders:String=defaultLogHeaders[F](message)(logHeaders,redactHeadersWhen)
valbodyText:F[String]=logBodyText.apply(message.body)match{
caseSome(textF)=>
toFunctorOps[F,String](textF)(F).map[String](((text:String)=>_root_.scala.StringContext.apply("body=\"","\"").s(text)))
caseNone=>
F.pure[String]("")
}
defspaced(x:String):String=if(x.isEmpty())xelse_root_.scala.StringContext.apply("","").s(x)
toFlatMapOps[F,String](toFunctorOps[F,String](bodyText)(F).map[String](((body:String)=>_root_.scala.StringContext.apply("","","","").s(prelude,spaced(headers),spaced(body)))))(F).flatMap[Unit](log)
}" class="documentableName ">logMessageWithBodyText[F[_]](message: Message[F])(logHeaders: Boolean, logBodyText: Stream[F, Byte] => Option[F[String]], redactHeadersWhen: CIString => Boolean)(log: String => F[Unit])(implicit F: Monad[F]): F[Unit]
- Source:
- Logger.scala