com.beachape.logging

LTSVLoggerLike

Related Doc: package logging

trait LTSVLoggerLike extends AnyRef

SLF4JLogger wrapper for writing log messages to a dedicated logger in LTSV format in a performant way.

The logging methods in this trait are performant because the check-enabled-idiom is applied using macros. For example,

logger.info("message" -> s"$expensiveMessage"*)

gets expanded at compile-time to

if (logger.isDebugEnabled) logger.info(toLtsv("message" -> s"$expensiveMessage"*))
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LTSVLoggerLike
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def underlyingLogger: Logger

    The logger to write to.

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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final macro def debug[A](error: Throwable, obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object and error into LTSV along with any number of pairs

  7. final macro def debug[A](obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object into LTSV along with any number of pairs

  8. final macro def debug(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV debug log entry

  9. final macro def debug(message: String): Unit

    Write the given message as an LTSV info debug entry.

    Write the given message as an LTSV info debug entry. Convenient, but don't over-use it, otherwise, the entire point of LTSV is lost.

    The LTSV log entry has a singular "message" key

  10. final macro def debug(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV debug log entry

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. final macro def error[A](error: Throwable, obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object and error into LTSV along with any number of pairs

  14. final macro def error[A](obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object into LTSV along with any number of pairs

  15. final macro def error(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV error log entry

  16. final macro def error(message: String): Unit

    Write the given message as an LTSV info error entry.

    Write the given message as an LTSV info error entry. Convenient, but don't over-use it, otherwise, the entire point of LTSV is lost.

    The LTSV log entry has a singular "message" key

  17. final macro def error(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV error log entry

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final macro def info[A](error: Throwable, obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object and error into LTSV along with any number of pairs

  22. final macro def info[A](obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object into LTSV along with any number of pairs

  23. final macro def info(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV info log entry

  24. final macro def info(message: String): Unit

    Write the given message as an LTSV info log entry.

    Write the given message as an LTSV info log entry. Convenient, but don't over-use it, otherwise, the entire point of LTSV is lost.

    The LTSV log entry has a singular "message" key

  25. final macro def info(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV info log entry

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toLtsv(pairs: (String, Any)*): String

    Turns a sequence of LTSV pairs into a single LTSV string.

  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final macro def trace[A](error: Throwable, obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object and error into LTSV along with any number of pairs

  34. final macro def trace[A](obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object into LTSV along with any number of pairs

  35. final macro def trace(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV trace log entry

  36. final macro def trace(message: String): Unit

    Write the given message as an LTSV info trace entry.

    Write the given message as an LTSV info trace entry. Convenient, but don't over-use it, otherwise, the entire point of LTSV is lost.

    The LTSV log entry has a singular "message" key

  37. final macro def trace(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV trace log entry

  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final macro def warn[A](error: Throwable, obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object and error into LTSV along with any number of pairs

  42. final macro def warn[A](obj: A, pairs: (String, Any)*)(implicit ltsvable: LTSVable[A]): Unit

    Write a given Generic [A] object into LTSV along with any number of pairs

  43. final macro def warn(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV warn log entry

  44. final macro def warn(message: String): Unit

    Write the given message as an LTSV info warn entry.

    Write the given message as an LTSV info warn entry. Convenient, but don't over-use it, otherwise, the entire point of LTSV is lost.

    The LTSV log entry has a singular "message" key

  45. final macro def warn(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV warn log entry

Inherited from AnyRef

Inherited from Any

Ungrouped