| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final LogRecordBuilder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Logger | |
| public LogRecordBuilder | logRecordBuilder()
Implements io. Return a |
| INSTANCE | back to summary |
|---|---|
| private static final Logger INSTANCE | |
| NOOP_LOG_RECORD_BUILDER | back to summary |
|---|---|
| private static final LogRecordBuilder NOOP_LOG_RECORD_BUILDER | |
| DefaultLogger | back to summary |
|---|---|
| private DefaultLogger() | |
| getInstance | back to summary |
|---|---|
| pack-priv static Logger getInstance() | |
| logRecordBuilder | back to summary |
|---|---|
| public LogRecordBuilder logRecordBuilder() Implements io. Doc from io. Return a Important Note this should be used to write appenders to bridge logs from logging frameworks (e.g. SLF4J, Log4j, JUL, Logback, etc). It is NOT a replacement for an application logging framework, and should not be used by application developers. Build the log record using the
| |
| Access | Constructor and Description |
|---|---|
| private |
| NoopLogRecordBuilder | back to summary |
|---|---|
| private NoopLogRecordBuilder() | |
| emit | back to summary |
|---|---|
| public void emit() Implements io. Doc from io. Emit the log record.
| |
| setAttribute | back to summary |
|---|---|
| public <T> LogRecordBuilder setAttribute(AttributeKey<T> key, T value) Implements io. Doc from io. Sets an attribute on the
| |
| setBody | back to summary |
|---|---|
| public LogRecordBuilder setBody(String body) Implements io. Doc from io. Set the body string. Shorthand for calling
| |
| setBody | back to summary |
|---|---|
| public LogRecordBuilder setBody(Value<?> body) Overrides default io. Doc from io. Set the body
| |
| setContext | back to summary |
|---|---|
| public LogRecordBuilder setContext(Context context) Implements io. Doc from io. Set the context.
| |
| setObservedTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setObservedTimestamp(long timestamp, TimeUnit unit) Implements io. Doc from io. Set the epoch The
| |
| setObservedTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setObservedTimestamp(Instant instant) Implements io. Doc from io. Set the The
| |
| setSeverity | back to summary |
|---|---|
| public LogRecordBuilder setSeverity(Severity severity) Implements io. Doc from io. Set the severity.
| |
| setSeverityText | back to summary |
|---|---|
| public LogRecordBuilder setSeverityText(String severityText) Implements io. Doc from io. Set the severity text.
| |
| setTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setTimestamp(long timestamp, TimeUnit unit) Implements io. Doc from io. Set the epoch The
| |
| setTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setTimestamp(Instant instant) Implements io. Doc from io. Set the epoch The
| |