com.beachape.logging

LTSVLoggerLike

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 underlying: 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(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV debug log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values and error as an LTSV debug log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  7. final macro def debug(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV debug log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values as an LTSV debug log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. final macro def error(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV error log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values and error as an LTSV error log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  11. final macro def error(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV error log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values as an LTSV error log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  12. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  15. final macro def info(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV info log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values and error as an LTSV info log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  16. final macro def info(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV info log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values as an LTSV info log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  17. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

    Annotations
    @inline()
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final macro def trace(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV trace log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values and error as an LTSV trace log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  25. final macro def trace(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV trace log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values as an LTSV trace log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final macro def warn(error: Throwable, pairs: (String, Any)*): Unit

    Write the given key-values and error as an LTSV warn log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values and error as an LTSV warn log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()
  30. final macro def warn(pairs: (String, Any)*): Unit

    Write the given key-values as an LTSV warn log entry, with the server's hostname added as 'octopartsHost' field.

    Write the given key-values as an LTSV warn log entry, with the server's hostname added as 'octopartsHost' field.

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped