Interface ProviderContext
- All Known Subinterfaces:
LabelProvider.Context,StructuredParameterProvider.Context
public interface ProviderContext
Contextual data available to
StructuredParameterProvider and LabelProvider.
Provides access to information carried by the ExtLogRecord that is being formatted and
that is not taken care of by Formatter by default.
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringTheLogRecord.getLoggerName()property of the log record that is being formatted.longTheLogRecord.getSequenceNumber()property of the log record that is being formatted.@Nullable StringTheExtLogRecord.getThreadName()property of the log record that is being formatted.
-
Method Details
-
loggerName
@Nullable String loggerName()TheLogRecord.getLoggerName()property of the log record that is being formatted.- Returns:
LogRecord.getLoggerName().
-
sequenceNumber
long sequenceNumber()TheLogRecord.getSequenceNumber()property of the log record that is being formatted.- Returns:
LogRecord.getSequenceNumber().
-
threadName
@Nullable String threadName()TheExtLogRecord.getThreadName()property of the log record that is being formatted.- Returns:
ExtLogRecord.getThreadName().
-