Packages

c

com.here.platform.pipeline.logging.java

ContextAwareLogger

class ContextAwareLogger extends BaseLoggerWrapper

Main context-aware logging class.

Note

This is a Java-friendly version of com.here.platform.pipeline.logging.ContextAwareLogger.

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

Instance Constructors

  1. new ContextAwareLogger(cls: Class[_])

    cls

    The class whose name is included in every message.

  2. new ContextAwareLogger(loggerFactory: () ⇒ Logger)

    loggerFactory

    Function returning the underlying logger. This function is evaluated once per deserialized instance.

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(cause: Throwable, pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a debug message.

    Logs a debug message. Lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if debug logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  7. def debug(cause: Throwable, pattern: String, objects: AnyRef*): Unit

    Logs a debug message.

    Logs a debug message. Non-lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  8. def debug(pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a debug message.

    Logs a debug message. Lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if debug logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  9. def debug(pattern: String, objects: AnyRef*): Unit

    Logs a debug message.

    Logs a debug message. Non-lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def error(cause: Throwable, pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs an error message.

    Logs an error message. Lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if error logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  13. def error(cause: Throwable, pattern: String, objects: AnyRef*): Unit

    Logs an error message.

    Logs an error message. Non-lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  14. def error(pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs an error message.

    Logs an error message. Lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if error logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  15. def error(pattern: String, objects: AnyRef*): Unit

    Logs an error message.

    Logs an error message. Non-lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def info(cause: Throwable, pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs an info message.

    Logs an info message. Lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if info logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  20. def info(cause: Throwable, pattern: String, objects: AnyRef*): Unit

    Logs an info message.

    Logs an info message. Non-lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  21. def info(pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs an info message.

    Logs an info message. Lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if info logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  22. def info(pattern: String, objects: AnyRef*): Unit

    Logs an info message.

    Logs an info message. Non-lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  23. 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
    BaseLoggerWrapperBaseLogger
  24. 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
    BaseLoggerWrapperBaseLogger
  25. 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
    BaseLoggerWrapperBaseLogger
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. 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
    BaseLoggerWrapperBaseLogger
  28. 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
    BaseLoggerWrapperBaseLogger
  29. def limit(n: Int): SamplingLogger

    Logs only the first n messages.

    Logs only the first n messages.

    n

    The number of messages to log. Must be a positive number.

    See also

    SamplingLogger

    Limit

    sampling

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def oneEvery(n: Int, limit: Int): SamplingLogger

    Logs only one message every n messages, up to limit messages.

    Logs only one message every n messages, up to limit messages.

    n

    Number of messages in a sampling period. Must be a positive number.

    limit

    The maximum number of messages to log. Must be a positive number.

    See also

    SamplingLogger

    OneEvery

    Limit

    Chain

    sampling

  34. def oneEvery(n: Int): SamplingLogger

    Logs only one message every n messages.

    Logs only one message every n messages.

    n

    Number of messages in a sampling period. Must be a positive number.

    See also

    SamplingLogger

    OneEvery

    sampling

  35. def oneWithin(timeWindow: Duration, limit: Int): SamplingLogger

    Logs only one message within timeWindow, up to limit total messages.

    Logs only one message within timeWindow, up to limit total messages.

    timeWindow

    Duration of the time window. Must be non-empty.

    limit

    The maximum number of messages to log. Must be a positive number.

    See also

    SamplingLogger

    OneWithin

    Limit

    Chain

    sampling

  36. def oneWithin(timeWindow: Duration): SamplingLogger

    Logs only one message within a time window.

    Logs only one message within a time window. The rest of the messages within the same time window are skipped.

    timeWindow

    Duration of the time window. Must be non-empty.

    See also

    SamplingLogger

    OneWithin

    sampling

  37. def sampling(strategy: SamplingStrategy): SamplingLogger

    Returns a SamplingLogger wrapping this ContextAwareLogger using the specified SamplingStrategy

  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def trace(cause: Throwable, pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a trace message.

    Logs a trace message. Lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if trace logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  41. def trace(cause: Throwable, pattern: String, objects: AnyRef*): Unit

    Logs a trace message.

    Logs a trace message. Non-lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  42. def trace(pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a trace message.

    Logs a trace message. Lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if trace logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  43. def trace(pattern: String, objects: AnyRef*): Unit

    Logs a trace message.

    Logs a trace message. Non-lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  47. def warn(cause: Throwable, pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a warning message.

    Logs a warning message. Lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if warning logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  48. def warn(cause: Throwable, pattern: String, objects: AnyRef*): Unit

    Logs a warning message.

    Logs a warning message. Non-lazy overload.

    cause

    The cause of the message.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()
  49. def warn(pattern: String, first: Supplier[_ <: AnyRef], others: Supplier[_ <: AnyRef]*): Unit

    Logs a warning message.

    Logs a warning message. Lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects produced by evaluating the lambda objects. Lambdas are evaluated only if warning logging is enabled.

    first

    Lambda producing the first object.

    others

    Variable number of lambdas.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs() @SafeVarargs()
  50. def warn(pattern: String, objects: AnyRef*): Unit

    Logs a warning message.

    Logs a warning message. Non-lazy overload.

    pattern

    The format message to be logged, evaluated always. Can contain {} markers that are substituted with the optional objects.

    objects

    Variable number of objects. Each {} marker in pattern is replaced with the string representation of the corresponding object.

    Definition Classes
    BaseLoggerWrapperBaseLogger
    Annotations
    @varargs()

Inherited from BaseLoggerWrapper

Inherited from BaseLogger

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped