Class LogInput.Builder
java.lang.Object
codes.grow.packages.betterstack.logging.LogInput.Builder
- Enclosing class:
LogInput
Builder for
LogInput.-
Method Summary
Modifier and TypeMethodDescriptionAdds an attribute.attributes(Map<String, ?> attributes) Replaces the attributes.build()Builds the input.Sets the severity.Sets the span id.Sets the event time.Sets the trace id.
-
Method Details
-
severity
Sets the severity.- Parameters:
severity- severity- Returns:
- this builder
-
attributes
Replaces the attributes.- Parameters:
attributes- attributes (may benull)- Returns:
- this builder
-
attribute
Adds an attribute.- Parameters:
key- namevalue- attribute value- Returns:
- this builder
-
timestamp
Sets the event time.- Parameters:
timestamp- event time- Returns:
- this builder
-
traceId
Sets the trace id.- Parameters:
traceId- 32 hex characters- Returns:
- this builder
-
spanId
Sets the span id.- Parameters:
spanId- 16 hex characters- Returns:
- this builder
-
build
Builds the input.- Returns:
- the input
-