Class BatchingLogClient.Builder

java.lang.Object
codes.grow.packages.skywalking.logging.BatchingLogClient.Builder
Enclosing class:
BatchingLogClient

public static final class BatchingLogClient.Builder extends Object
Builder for BatchingLogClient.
  • Method Details

    • batchOptions

      public BatchingLogClient.Builder batchOptions(BatchOptions options)
      Sets the batch options.
      Parameters:
      options - options
      Returns:
      this builder
    • resource

      public BatchingLogClient.Builder resource(Map<String,?> 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

      public BatchingLogClient.Builder redaction(RedactionProcessor redaction)
      Sets the redaction processor; null disables redaction (not recommended).
      Parameters:
      redaction - processor or null
      Returns:
      this builder
    • clock

      public BatchingLogClient.Builder clock(Clock clock)
      Sets the clock used for default timestamps (tests).
      Parameters:
      clock - clock
      Returns:
      this builder
    • build

      public BatchingLogClient build()
      Builds the client and starts its worker thread.
      Returns:
      client