Logger
org.http4s.internal.Logger$
object Logger
Attributes
- Source
- Logger.scala
- Graph
-
- Supertypes
- Self type
-
Logger.type
Members list
Value members
Concrete methods
def :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])elsetoFunctorOps[F,ByteVector](message.body.compile[[x>:Nothing<:Any]=>F[x],[x>:Nothing<:Any]=>F[x],Byte](target[[x>:Nothing<:Any]=>F[x]](forConcurrent[[x>:Nothing<:Any]=>F[x]](evidence$1))).to(supportsByteVector(ByteVector)))(evidence$1).map[String](((_$4:ByteVector)=>_$4.toHex)) Some.apply[F[String]](string) }elseNone" t="n"class="documentableName ">defaultLogBody[F[_] : Concurrent](message: Message[F])(logBody: Boolean): Option[F[String]]
Attributes
- Source
- Logger.scala
def defaultLogHeaders[F[_]](message: Message[F])(logHeaders: Boolean, redactHeadersWhen: CIString => Boolean): String
Attributes
- 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]
Attributes
- Source
- Logger.scala
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) }" t="n"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]
Attributes
- Source
- Logger.scala
In this article