Package com.mongodb

Class LoggerSettings.Builder

java.lang.Object
com.mongodb.LoggerSettings.Builder
Enclosing class:
LoggerSettings

public static final class LoggerSettings.Builder extends Object
A builder for an instance of LoggerSettings.
  • Method Details

    • applySettings

      public LoggerSettings.Builder applySettings(LoggerSettings loggerSettings)
      Applies the loggerSettings to the builder

      Note: Overwrites all existing settings

      Parameters:
      loggerSettings - the loggerSettings
      Returns:
      this
    • maxDocumentLength

      public LoggerSettings.Builder maxDocumentLength(int maxDocumentLength)
      Sets the max document length.
      Parameters:
      maxDocumentLength - the max document length
      Returns:
      this
      See Also:
    • build

      public LoggerSettings build()
      Build an instance of LoggerSettings.
      Returns:
      the logger settings for this builder