Class SyslogLayout.Builder<B extends SyslogLayout.Builder<B>>

Type Parameters:
B - the builder type
All Implemented Interfaces:
Enclosing class:

public static class SyslogLayout.Builder<B extends SyslogLayout.Builder<B>> extends AbstractStringLayout.Builder<B> implements Builder<SyslogLayout>
Builds a SyslogLayout.

The main arguments are

  • facility: The Facility is used to try to classify the message.
  • includeNewLine: If true a newline will be appended to the result.
  • escapeNL: Pattern to use for replacing newlines.
  • charset: The character set.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public SyslogLayout 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 SyslogLayout.Builder<B>>
      the configured instance.
    • getFacility

      public Facility getFacility()
    • isIncludeNewLine

      public boolean isIncludeNewLine()
    • getEscapeNL

      public String getEscapeNL()
    • setFacility

      public B setFacility(Facility facility)
    • setIncludeNewLine

      public B setIncludeNewLine(boolean includeNewLine)
    • setEscapeNL

      public B setEscapeNL(String escapeNL)