public class DefaultComponentsReporter extends java.lang.Object implements ErrorReporterDelegate
Constructor and Description |
---|
DefaultComponentsReporter() |
Modifier and Type | Method and Description |
---|---|
void |
emitMessage(ComponentsReporter.LogLevel level,
java.lang.String categoryKey,
java.lang.String message) |
void |
emitMessage(ComponentsReporter.LogLevel level,
java.lang.String categoryKey,
java.lang.String message,
int samplingFrequency) |
void |
emitMessage(ComponentsReporter.LogLevel level,
java.lang.String categoryKey,
java.lang.String message,
int samplingFrequency,
java.util.Map<java.lang.String,java.lang.Object> metadata) |
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.
|
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
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 void emitMessage(ComponentsReporter.LogLevel level, java.lang.String categoryKey, java.lang.String message)
public void emitMessage(ComponentsReporter.LogLevel level, java.lang.String categoryKey, java.lang.String message, int samplingFrequency)
public void emitMessage(ComponentsReporter.LogLevel level, java.lang.String categoryKey, java.lang.String message, int samplingFrequency, java.util.Map<java.lang.String,java.lang.Object> metadata)