public class TestComponentsReporter extends DefaultComponentsReporter
Constructor and Description |
---|
TestComponentsReporter() |
Modifier and Type | Method and Description |
---|---|
java.util.List<<any>> |
getLoggedCategoryKeys() |
java.util.List<<any>> |
getLoggedMessages() |
boolean |
hasMessageType(LogLevel logLevel) |
void |
report(LogLevel level,
java.lang.String categoryKey,
java.lang.String message,
java.lang.Throwable cause,
int samplingFrequency,
java.util.Map<java.lang.String,java.lang.Object> metadata)
Emit a message that can be logged or escalated by the logger implementation.
|
emitMessage, emitMessage, emitMessage
public java.util.List<<any>> getLoggedMessages()
public java.util.List<<any>> getLoggedCategoryKeys()
public void report(LogLevel level, java.lang.String categoryKey, java.lang.String message, java.lang.Throwable cause, int samplingFrequency, java.util.Map<java.lang.String,java.lang.Object> metadata)
ErrorReporterDelegate
report
in interface ErrorReporterDelegate
report
in class DefaultComponentsReporter
level
- The log level.categoryKey
- Unique key for aggregation.message
- Message to log. * @param cause Cause to log.cause
- Cause to log. default value = nullsamplingFrequency
- sampling frequency to override default one. default value = 0metadata
- map of metadata associated with the message. default value = nullpublic boolean hasMessageType(LogLevel logLevel)