Class RollingFileAppender.Builder<B extends RollingFileAppender.Builder<B>>

Type Parameters:
B - The type to build
All Implemented Interfaces:
Builder<RollingFileAppender>
Enclosing class:
RollingFileAppender

public static class RollingFileAppender.Builder<B extends RollingFileAppender.Builder<B>> extends AbstractOutputStreamAppender.Builder<B> implements Builder<RollingFileAppender>
Builds FileAppender instances.
Since:
2.7
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public RollingFileAppender build()
      Description copied from interface: Builder
      Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.
      Specified by:
      build in interface Builder<B extends RollingFileAppender.Builder<B>>
      Returns:
      the configured instance.
    • getAdvertiseUri

      public String getAdvertiseUri()
    • getFileName

      public String getFileName()
    • isAdvertise

      public boolean isAdvertise()
    • isAppend

      public boolean isAppend()
    • isCreateOnDemand

      public boolean isCreateOnDemand()
    • isLocking

      public boolean isLocking()
    • getFilePermissions

      public String getFilePermissions()
    • getFileOwner

      public String getFileOwner()
    • getFileGroup

      public String getFileGroup()
    • withAdvertise

      public B withAdvertise(boolean advertise)
    • withAdvertiseUri

      public B withAdvertiseUri(String advertiseUri)
    • withAppend

      public B withAppend(boolean append)
    • withFileName

      public B withFileName(String fileName)
    • withCreateOnDemand

      public B withCreateOnDemand(boolean createOnDemand)
    • withLocking

      public B withLocking(boolean locking)
    • getFilePattern

      public String getFilePattern()
    • getPolicy

      public TriggeringPolicy getPolicy()
    • getStrategy

      public RolloverStrategy getStrategy()
    • withFilePattern

      public B withFilePattern(String filePattern)
    • withPolicy

      public B withPolicy(TriggeringPolicy policy)
    • withStrategy

      public B withStrategy(RolloverStrategy strategy)
    • withFilePermissions

      public B withFilePermissions(String filePermissions)
    • withFileOwner

      public B withFileOwner(String fileOwner)
    • withFileGroup

      public B withFileGroup(String fileGroup)