package fs2
- Alphabetic
- Public
- Protected
Type Members
- final class LogSelector[F[_]] extends AnyVal
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 noLogWriteris 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 noLogWriteris 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] create[F](address) } will log using
loggerdef useTheClient[F[_]](address: String): F[Unit] = create[F](address) will not log
Value Members
- object Fs2LogWriter
- object LogSelector extends LogSelectorInstances0
- object SyncLogWriter