Logger.
Obtain a Logger#logRecordBuilder(), add properties using the setters, and emit the log
record by calling emit().
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default LogRecordBuilder | |
| public <T> LogRecordBuilder | Returns: this.the key for this attribute. key, T the value for this attribute. value)Sets an attribute on the |
| public default LogRecordBuilder | Returns: this.the key for this attribute. key, String the value for this attribute. value)Sets a String attribute on the |
| public default LogRecordBuilder | Returns: this.the key for this attribute. key, long the value for this attribute. value)Sets a Long attribute on the |
| public default LogRecordBuilder | Returns: this.the key for this attribute. key, double the value for this attribute. value)Sets a Double attribute on the |
| public default LogRecordBuilder | Returns: this.the key for this attribute. key, boolean the value for this attribute. value)Sets a Boolean attribute on the |
| public default LogRecordBuilder | Returns: this.the key for this attribute. key, int the value for this attribute. value)Sets an Integer attribute on the |
| public LogRecordBuilder | |
| public default LogRecordBuilder | |
| public LogRecordBuilder | |
| public LogRecordBuilder | setObservedTimestamp(long timestamp, TimeUnit unit)
Set the epoch |
| public LogRecordBuilder | |
| public LogRecordBuilder | |
| public LogRecordBuilder | |
| public LogRecordBuilder | |
| public LogRecordBuilder |
| emit | back to summary |
|---|---|
| public void emit() Emit the log record. | |
| setAllAttributes | back to summary |
|---|---|
| public default LogRecordBuilder setAllAttributes(Attributes attributes) Sets attributes. If the
| |
| setAttribute | back to summary |
|---|---|
| public <T> LogRecordBuilder setAttribute(AttributeKey<T> key, T value) Sets an attribute on the
| |
| setAttribute | back to summary |
|---|---|
| public default LogRecordBuilder setAttribute(String key, String value) Sets a String attribute on the Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public default LogRecordBuilder setAttribute(String key, long value) Sets a Long attribute on the Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public default LogRecordBuilder setAttribute(String key, double value) Sets a Double attribute on the Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public default LogRecordBuilder setAttribute(String key, boolean value) Sets a Boolean attribute on the Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public default LogRecordBuilder setAttribute(String key, int value) Sets an Integer attribute on the Note It is strongly recommended to use
| |
| setBody | back to summary |
|---|---|
| public LogRecordBuilder setBody(String body) Set the body string. Shorthand for calling | |
| setBody | back to summary |
|---|---|
| public default LogRecordBuilder setBody(Value<?> body) Set the body
| |
| setContext | back to summary |
|---|---|
| public LogRecordBuilder setContext(Context context) Set the context. | |
| setObservedTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setObservedTimestamp(long timestamp, TimeUnit unit) Set the epoch The | |
| setObservedTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setObservedTimestamp(Instant instant) Set the The | |
| setSeverity | back to summary |
|---|---|
| public LogRecordBuilder setSeverity(Severity severity) Set the severity. | |
| setSeverityText | back to summary |
|---|---|
| public LogRecordBuilder setSeverityText(String severityText) Set the severity text. | |
| setTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setTimestamp(long timestamp, TimeUnit unit) Set the epoch The | |
| setTimestamp | back to summary |
|---|---|
| public LogRecordBuilder setTimestamp(Instant instant) Set the epoch The | |