public class DefaultComponentsReporter extends Object implements ComponentsReporter.Reporter
Constructor and Description |
---|
DefaultComponentsReporter() |
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.
|
public void emitMessage(ComponentsReporter.LogLevel level, String categoryKey, String message)
ComponentsReporter.Reporter
emitMessage
in interface ComponentsReporter.Reporter
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
categoryKey
- Unique key for aggregating all occurrences of given error in error
aggregation systemsmessage
- Message to logsamplingFrequency
- sampling frequency to override default one