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.
- Alphabetic
- By Inheritance
- SamplingLogger
- BaseLogger
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val strategy: SamplingStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger
- val underlying: ContextAwareLogger
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- SamplingLogger → BaseLogger
-
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
- SamplingLogger → BaseLogger