Class BatchingLogClient.Builder
java.lang.Object
codes.grow.packages.skywalking.logging.BatchingLogClient.Builder
- Enclosing class:
BatchingLogClient
Builder for
BatchingLogClient.-
Method Summary
Modifier and TypeMethodDescriptionbatchOptions(BatchOptions options) Sets the batch options.build()Builds the client and starts its worker thread.Sets the clock used for default timestamps (tests).redaction(RedactionProcessor redaction) Sets the redaction processor;nulldisables redaction (not recommended).Sets the resource attributes (service.name,service.version,deployment.environment,host.name, …).
-
Method Details
-
batchOptions
Sets the batch options.- Parameters:
options- options- Returns:
- this builder
-
resource
Sets the resource attributes (service.name,service.version,deployment.environment,host.name, …). A record's own resource keys win.- Parameters:
resource- resource attributes- Returns:
- this builder
-
redaction
Sets the redaction processor;nulldisables redaction (not recommended).- Parameters:
redaction- processor ornull- Returns:
- this builder
-
clock
Sets the clock used for default timestamps (tests).- Parameters:
clock- clock- Returns:
- this builder
-
build
Builds the client and starts its worker thread.- Returns:
- client
-