o

io.bullet.borer

Logging

object Logging

Facilities for on-the-side logging of either encoding or decoding progress, which can be useful for debugging problems with the input or custom codec logic.

Logging can be done either before or after the input validation step, depending on your needs. If unsure, go for after-validation logging, at least initially. (This is also the default.) For example, to log decoding progress to the console you can say:

Cbor.decode(inputBytes).withPrintLogging().to[MyType]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logging
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait LevelInfo extends AnyRef
  2. sealed trait LevelType extends AnyRef
  3. abstract class LineFormatLogger extends Logger

    A Logger which formats each incoming element to it's own log line.

  4. trait Logger extends AnyRef
  5. final class PrintLogger extends LineFormatLogger

    A LineFormatLogger that simply prints all lines to the console.

  6. final class Receiver extends borer.Receiver with LevelInfo

    A Receiver which forwards all incoming data item to another Receiver and, on the side, feeds a custom Logger with logging events.

  7. final class ToStringLogger extends LineFormatLogger

    A LineFormatLogger that appends all lines to a given JStringBuilder.

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. def PrintLogger(maxShownByteArrayPrefixLen: Int = 20, maxShownStringPrefixLen: Int = 50, maxShownArrayElems: Int = 20, maxShownMapEntries: Int = 20): (LevelInfo) ⇒ PrintLogger
  5. def ToStringLogger(stringBuilder: StringBuilder, maxShownByteArrayPrefixLen: Int = 20, maxShownStringPrefixLen: Int = 50, maxShownArrayElems: Int = 20, maxShownMapEntries: Int = 20, lineSeparator: String = System.lineSeparator()): (LevelInfo) ⇒ ToStringLogger
  6. def apply[Config](createLogger: (LevelInfo) ⇒ Logger): Wrapper[Config]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. object LevelType

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped