Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Value members
Concrete methods
Combines two instances of tofu.logging.Logs, resulting in a single one that will produce instances of tofu.logging.Logging by combining. Resulting tofu.logging.Logging instance will call both implementations in order.
Combines two instances of tofu.logging.Logs, resulting in a single one that will produce instances of tofu.logging.Logging by combining. Resulting tofu.logging.Logging instance will call both implementations in order.
Attributes
Returns an instance of tofu.logging.Logs that will produce the same constant tofu.logging.Logging instances.
Returns an instance of tofu.logging.Logs that will produce the same constant tofu.logging.Logging instances.
Attributes
Returns an instance of tofu.logging.Logs that will produce a no-op tofu.logging.Logging instances.
Returns an instance of tofu.logging.Logs that will produce a no-op tofu.logging.Logging instances.
Attributes
Allows to create Logging instance for the service
Allows to create Logging instance for the service
Attributes
- Example
-
class MyService[F[_]](log: MyService.Log[F]) {...} object MyService extends LoggingCompanion[MyService] { def make[I[_], F[_]]: I[MyService[F]] = Logs.provide[MyService[F]](new MyService[F](_)) }
Allows to create Logging instance for the service
Allows to create Logging instance for the service
Same as provide but with ability to perform monadic actions.
Attributes
- Example
-
class MyService[F[_]](ref: Ref[F, Smth], log: MyService.Log[F]) {...} object MyService extends LoggingCompanion[MyService] { def make[I[_], F[_]]: I[MyService[F]] = Logs.provide[MyService[F]]{ log => for { ref <- Ref.make(...) ... } yield new MyService(ref, log) } }
Returns an instance of tofu.logging.Logs that requires Delay to perform logging side-effects. Has no notion of context.
Returns an instance of tofu.logging.Logs that requires Delay to perform logging side-effects. Has no notion of context.
Attributes
Deprecated methods
Attributes
- Deprecated
-
[Since version 0.10.4]
Implicits
Inherited implicits
Attributes
- Inherited from:
- LogsInstances0 (hidden)
Attributes
- Inherited from:
- LogsInstances1 (hidden)
Attributes
- Inherited from:
- LogsInstances
Attributes
- Inherited from:
- LogsInstances