Packages

class SamplingLogger extends BaseLogger

A context-aware logger that filters the log messages based on a configurable com.here.platform.pipeline.logging.SamplingStrategy. The sampling strategy is applied independently for each logger call site.

Linear Supertypes
BaseLogger, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SamplingLogger
  2. BaseLogger
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SamplingLogger(underlying: ContextAwareLogger, strategy: SamplingStrategy, callSiteStackOffset: Int = 0)

    underlying

    The underlying ContextAwareLogger.

    strategy

    Sampling strategy for the logger.

    callSiteStackOffset

    Additional offset used by this logger to find the call site position up the stack. The sampling strategy is applied independently per call site. If the logger is used directly this should be left 0. If the logger is used indirectly via methods or wrappers, the offset should be set equal to the number of stack frames between the wrapper method and the sampling logger API.

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def debug(message: ⇒ String, cause: Throwable): Unit

    Logs a debug message.

    Logs a debug message.

    message

    The message to be logged, evaluated only when debug logging is enabled.

    cause

    The cause of the message.

    Definition Classes
    SamplingLoggerBaseLogger
  7. def debug(message: ⇒ String): Unit

    Logs a debug message.

    Logs a debug message.

    message

    The message to be logged, evaluated only when debug logging is enabled.

    Definition Classes
    SamplingLoggerBaseLogger
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def error(message: ⇒ String, cause: Throwable): Unit

    Logs an error message.

    Logs an error message.

    message

    The message to be logged, evaluated only when error logging is enabled.

    cause

    The cause of the message.

    Definition Classes
    SamplingLoggerBaseLogger
  11. def error(message: ⇒ String): Unit

    Logs an error message.

    Logs an error message.

    message

    The message to be logged, evaluated only when error logging is enabled.

    Definition Classes
    SamplingLoggerBaseLogger
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def info(message: ⇒ String, cause: Throwable): Unit

    Logs an info message.

    Logs an info message.

    message

    The message to be logged, evaluated only when info logging is enabled.

    cause

    The cause of the message.

    Definition Classes
    SamplingLoggerBaseLogger
  16. def info(message: ⇒ String): Unit

    Logs an info message.

    Logs an info message.

    message

    The message to be logged, evaluated only when info logging is enabled.

    Definition Classes
    SamplingLoggerBaseLogger
  17. def isDebugEnabled: Boolean

    Returns true if the logger instance is enabled for the DEBUG level.

    Returns true if the logger instance is enabled for the DEBUG level.

    Definition Classes
    SamplingLoggerBaseLogger
  18. def isErrorEnabled: Boolean

    Returns true if the logger instance is enabled for the ERROR level.

    Returns true if the logger instance is enabled for the ERROR level.

    Definition Classes
    SamplingLoggerBaseLogger
  19. def isInfoEnabled: Boolean

    Returns true if the logger instance is enabled for the INFO level.

    Returns true if the logger instance is enabled for the INFO level.

    Definition Classes
    SamplingLoggerBaseLogger
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isTraceEnabled: Boolean

    Returns true if the logger instance is enabled for the TRACE level.

    Returns true if the logger instance is enabled for the TRACE level.

    Definition Classes
    SamplingLoggerBaseLogger
  22. def isWarnEnabled: Boolean

    Returns true if the logger instance is enabled for the WARN level.

    Returns true if the logger instance is enabled for the WARN level.

    Definition Classes
    SamplingLoggerBaseLogger
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val strategy: SamplingStrategy
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def trace(message: ⇒ String, cause: Throwable): Unit

    Logs a trace message.

    Logs a trace message.

    message

    The message to be logged, evaluated only when trace logging is enabled.

    cause

    The cause of the message.

    Definition Classes
    SamplingLoggerBaseLogger
  30. def trace(message: ⇒ String): Unit

    Logs a trace message.

    Logs a trace message.

    message

    The message to be logged, evaluated only when trace logging is enabled.

    Definition Classes
    SamplingLoggerBaseLogger
  31. val underlying: ContextAwareLogger
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. def warn(message: ⇒ String, cause: Throwable): Unit

    Logs a warning message.

    Logs a warning message.

    message

    The message to be logged, evaluated only when warning logging is enabled.

    cause

    The cause of the message.

    Definition Classes
    SamplingLoggerBaseLogger
  36. def warn(message: ⇒ String): Unit

    Logs a warning message.

    Logs a warning message.

    message

    The message to be logged, evaluated only when warning logging is enabled.

    Definition Classes
    SamplingLoggerBaseLogger

Inherited from BaseLogger

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped