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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Logging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- trait LevelInfo extends AnyRef
- sealed trait LevelType extends AnyRef
-
abstract
class
LineFormatLogger extends Logger
A Logger which formats each incoming element to it's own log line.
- trait Logger extends AnyRef
-
final
class
PrintLogger extends LineFormatLogger
A LineFormatLogger that simply prints all lines to the console.
-
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.
-
final
class
ToStringLogger extends LineFormatLogger
A LineFormatLogger that appends all lines to a given JStringBuilder.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def PrintLogger(maxShownByteArrayPrefixLen: Int = 20, maxShownStringPrefixLen: Int = 50, maxShownArrayElems: Int = 20, maxShownMapEntries: Int = 20): (LevelInfo) ⇒ PrintLogger
- def ToStringLogger(stringBuilder: StringBuilder, maxShownByteArrayPrefixLen: Int = 20, maxShownStringPrefixLen: Int = 50, maxShownArrayElems: Int = 20, maxShownMapEntries: Int = 20, lineSeparator: String = System.lineSeparator()): (LevelInfo) ⇒ ToStringLogger
- def apply[Config](createLogger: (LevelInfo) ⇒ Logger): Wrapper[Config]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object LevelType
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated