Package com.mongodb
Class LoggerSettings.Builder
java.lang.Object
com.mongodb.LoggerSettings.Builder
- Enclosing class:
- LoggerSettings
A builder for an instance of
LoggerSettings
.-
Method Summary
Modifier and TypeMethodDescriptionapplySettings
(LoggerSettings loggerSettings) Applies the loggerSettings to the builderbuild()
Build an instance ofLoggerSettings
.maxDocumentLength
(int maxDocumentLength) Sets the max document length.
-
Method Details
-
applySettings
Applies the loggerSettings to the builderNote: Overwrites all existing settings
- Parameters:
loggerSettings
- the loggerSettings- Returns:
- this
-
maxDocumentLength
Sets the max document length.- Parameters:
maxDocumentLength
- the max document length- Returns:
- this
- See Also:
-
build
Build an instance ofLoggerSettings
.- Returns:
- the logger settings for this builder
-