log.effect.fs2
package log.effect.fs2
Members list
Concise view
Type members
Classlikes
object Fs2LogWriter
Attributes
- Source:
- Fs2LogWriter.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Fs2LogWriter.type
It helps to add logging capability to components allowing them to use a LogWriter[F]
if in
scope or defaulting, when F[_] is an Applicative, to noOpLog[F] if no LogWriter
is provided.
It helps to add logging capability to components allowing them to use a LogWriter[F]
if in
scope or defaulting, when F[_] is an Applicative, to noOpLog[F] if no LogWriter
is provided.
Example:
def create[F[_]: LogSelector](a: String): ALoggingClient[F] = new ALoggingClient[F] { def do = LogSelector[F].writer.info("something") }
def useTheClient[F[_]](address: String): F[Unit] = { implicit val logger: LogWriter[F] =
consoleLog[F] createF } will log using logger
def useTheClient[F[_]](address: String): F[Unit] = createF will not log
Attributes
- Companion:
- object
- Source:
- LogSelector.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
object LogSelector
Attributes
- Companion:
- class
- Source:
- LogSelector.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- LogSelector.type
object SyncLogWriter
Attributes
- Source:
- SyncLogWriter.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- SyncLogWriter.type