Enum Class LtsvStackTrace

java.lang.Object
java.lang.Enum<LtsvStackTrace>
io.jstach.rainbowgum.format.LtsvStackTrace
All Implemented Interfaces:
Serializable, Comparable<LtsvStackTrace>, Constable

How the core ltsv encoder writes a throwable's stack trace.
  • Enum Constant Details

    • INLINE

      @EnumAlias({"default","false"}) public static final LtsvStackTrace INLINE
      The default. The stack trace is the stacktrace value, escaped like any other, so every event is one line.
    • LINES

      @EnumAlias("true") public static final LtsvStackTrace LINES
      stacktrace: ends the event's line and each line of the stack trace follows on a line of its own, after a tab. This is no longer strict LTSV, but a line that starts with a tab is never an event: an empty first positional column is written as the reserved escape \e. A literal \e value is escaped as \\e, so the two remain distinct. Removing the leading tab from continuation lines gives back the stack trace, with an exception's message escaped like any other value so it stays on its line.
  • Method Details

    • values

      public static LtsvStackTrace[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LtsvStackTrace valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null