public class TestComponentsReporter extends DefaultComponentsReporter
Constructor and Description |
---|
TestComponentsReporter() |
Modifier and Type | Method and Description |
---|---|
void |
emitMessage(ComponentsReporter.LogLevel level,
String categoryKey,
String message)
Emit a message that can be logged or escalated by the logger implementation.
|
void |
emitMessage(ComponentsReporter.LogLevel level,
String categoryKey,
String message,
int samplingFrequency)
Emit a message that can be logged or escalated by the logger implementation.
|
List<<any>> |
getLoggedMessages() |
boolean |
hasMessageType(ComponentsReporter.LogLevel logLevel) |
public void emitMessage(ComponentsReporter.LogLevel level, String categoryKey, String message)
ComponentsReporter.Reporter
emitMessage
in interface ComponentsReporter.Reporter
emitMessage
in class DefaultComponentsReporter
categoryKey
- Unique key for aggregating all occurrences of given error in error
aggregation systemsmessage
- Message to logpublic void emitMessage(ComponentsReporter.LogLevel level, String categoryKey, String message, int samplingFrequency)
ComponentsReporter.Reporter
emitMessage
in interface ComponentsReporter.Reporter
emitMessage
in class DefaultComponentsReporter
categoryKey
- Unique key for aggregating all occurrences of given error in error
aggregation systemsmessage
- Message to logsamplingFrequency
- sampling frequency to override default onepublic List<<any>> getLoggedMessages()
public boolean hasMessageType(ComponentsReporter.LogLevel logLevel)