trait Logs[+I[_], F[_]] extends LogsVOps[I, F]

A helper for creating instances of tofu.logging.Logging, defining a way these instances will behave while doing logging. Can create instances either on a by-name basic or a type tag basic. An instance of tofu.logging.Logs can be shared between different pieces of code depending on whether logging behaviour should be shared. However it's not uncommon to use different Logs for different parts of program.

Sample usage would be:

Example:
  1.  val logs: Logs[F, F] = Logs.sync[F, F]
    
    def program[F[_]: Sync] = for { logging <- logs.byName("my-logger") _ <- logging.info("this is a message") _ <-
    logging.info("this is another message") } yield ()
Linear Supertypes
LogsVOps[I, F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logs
  2. LogsVOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def byName(name: String): I[Logging[F]]

    Creates an instance of tofu.logging.Logging for a given arbitrary string name, using it to create underlying org.slf4j.Logger with.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def biwiden[I1[a] >: I[a], F1[a] >: F[a]]: Logs[I1, F1]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def forService[Svc](implicit Svc: ClassTag[Svc]): I[Logging[F]]

    Creates an instance of tofu.logging.Logging with a given arbitrary type tag, using it as a class to create underlying org.slf4j.Logger with.

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def named[name <: String with Singleton](implicit name: ValueOf[name]): I[ServiceLogging[F, name]]
    Definition Classes
    LogsVOps
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def of[Svc[_[_]]](implicit tag: ClassTag[Svc[Any]]): I[ServiceLogging[F, Svc[Any]]]

    An alternative to service method for tagless final services.

    An alternative to service method for tagless final services.

    Example:
    1.  trait Service[F[_]]{ ...}
      
      object Service extends Logging.Companion[Service] val logs: Logs.Universal[F] = ???
      
      val serviceLog = logs.of[Service] //ServiceLogging[
  18. final def service[Svc](implicit arg0: ClassTag[Svc]): I[ServiceLogging[F, Svc]]
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from LogsVOps[I, F]

Inherited from AnyRef

Inherited from Any

Ungrouped