c

tofu.logging.impl

ContramapLoggable

class ContramapLoggable[A, B] extends Loggable[B]

Linear Supertypes
Loggable[B], Base[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContramapLoggable
  2. Loggable
  3. Base
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ContramapLoggable(self: Base[A], f: (B) => A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(that: Base[B]): Loggable[B]

    combine two loggables: put fields of both, choose value of first that suits

    combine two loggables: put fields of both, choose value of first that suits

    Definition Classes
    Loggable
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def combinedValue[I, V, R, M, A1 <: B](a: A1, values: V, that: Base[A1])(implicit render: LogRenderer[I, V, R, M]): M

    generate the combined value of that loggable and the other at the given position

    generate the combined value of that loggable and the other at the given position

    Definition Classes
    Base
  8. def contraCollect[B](f: PartialFunction[B, B]): Loggable[B]

    contravariant version of collect - log values of type B when they could be converted to A

    contravariant version of collect - log values of type B when they could be converted to A

    Definition Classes
    LoggableBase
  9. def contramap[C](g: (C) => B): Loggable[C]

    transform input value befor logging

    transform input value befor logging

    Definition Classes
    ContramapLoggableBase
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. val f: (B) => A
  13. def fields[I, V, R, M](b: B, input: I)(implicit receiver: LogRenderer[I, V, R, M]): R

    write all fields of current value in the current object - context

    write all fields of current value in the current object - context

    Definition Classes
    ContramapLoggableBase
  14. def filter(p: (B) => Boolean): Loggable[B]

    log this value whenever predicate holds

    log this value whenever predicate holds

    Definition Classes
    Loggable
  15. def filterC[B <: B](p: (B) => Boolean): Base[B]

    same as Loggable.fitler but contravariance-friendly version

    same as Loggable.fitler but contravariance-friendly version

    Definition Classes
    LoggableBase
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def hide: Loggable[B]

    same as this loggable, but do not show any info in the message string

    same as this loggable, but do not show any info in the message string

    Definition Classes
    LoggableBase
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def logAnnotation(name: String): LogAnnotation[B]

    Creates a new LogAnnotation using this Loggable with provided name

    Creates a new LogAnnotation using this Loggable with provided name

    Definition Classes
    Loggable
  21. def logShow(a: B): String

    display value in log message

    display value in log message

    a

    value for logging

    returns

    displayed form

    Definition Classes
    ContramapLoggableBase
  22. def logVia(a: B, addParam: (String, Any) => Unit): Unit

    add list of custom fields for value

    add list of custom fields for value

    a

    value for logging

    addParam

    side-effectful function, adding custom field to log entry

    Definition Classes
    ContramapLoggableBase
  23. def loggedValue(a: B): LoggedValue

    Convert value to LoggedValue

    Convert value to LoggedValue

    a

    value for logging

    returns

    new Logged Value

    Definition Classes
    Base
  24. def named(name: String): Loggable[B]

    whenever fields are called it would be a single field named name and corresponding value

    whenever fields are called it would be a single field named name and corresponding value

    Definition Classes
    LoggableBase
  25. def narrow[B <: B]: Loggable[B]
    Definition Classes
    LoggableBase
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. def plus[B <: B](that: Base[B]): Base[B]

    same as Loggable.+ but contravariace-friendly version

    same as Loggable.+ but contravariace-friendly version

    Definition Classes
    LoggableBase
  30. def putField[I, V, R, M](a: B, name: String, input: I)(implicit receiver: LogRenderer[I, V, R, M]): R

    put single logging field value in the field with supplied name

    put single logging field value in the field with supplied name

    Definition Classes
    ContramapLoggableBase
  31. def putMaskedField[I, V, R, S](a: B, name: String, i: I)(f: (String) => String)(implicit r: LogRenderer[I, V, R, S]): R

    put single logging field value in the field with supplied name if it's convertible to string, hide it otherwise

    put single logging field value in the field with supplied name if it's convertible to string, hide it otherwise

    Definition Classes
    Base
  32. def putMaskedValue[I, V, R, S](a: B, v: V)(f: (String) => String)(implicit r: LogRenderer[I, V, R, S]): S

    put single logging field value if it's convertible to string, hide it otherwise

    put single logging field value if it's convertible to string, hide it otherwise

    Definition Classes
    Base
  33. def putValue[I, V, R, M](a: B, v: V)(implicit r: LogRenderer[I, V, R, M]): M

    put single logging field value

    put single logging field value

    Definition Classes
    ContramapLoggableBase
  34. val self: Base[A]
  35. def shortName: String
    Definition Classes
    Base
  36. def showInstance: Show[B]
    Definition Classes
    LoggableBase
  37. def singleton(name: String): Loggable[B]

    something that works as named on the toplevel but ensures, that field is always represented as a singleton dict inside other value

    something that works as named on the toplevel but ensures, that field is always represented as a singleton dict inside other value

    Definition Classes
    Loggable
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def typeName: String
    Definition Classes
    Base
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. 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 Loggable[B]

Inherited from Base[B]

Inherited from AnyRef

Inherited from Any

Ungrouped