Class LoggerContext.Builder
- All Implemented Interfaces:
Builder<LoggerContext>
- Enclosing class:
- LoggerContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.Adds a name/value pair to the formatted output inname=valueformat.addValue(boolean value) Adds an unnamed value to the formatted output.addValue(char value) Adds an unnamed value to the formatted output.addValue(double value) Adds an unnamed value to the formatted output.addValue(float value) Adds an unnamed value to the formatted output.addValue(int value) Adds an unnamed value to the formatted output.addValue(long value) Adds an unnamed value to the formatted output.Adds an unnamed value to the formatted output.build()Builds the object.
-
Constructor Details
-
Builder
-
-
Method Details
-
add
Adds a name/value pair to the formatted output inname=valueformat. Ifvalueisnull, the string"null"is used. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
add
Adds a name/value pair to the formatted output inname=valueformat. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, Object)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, boolean)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, char)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, double)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, float)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, int)instead and give value a readable name. -
addValue
Adds an unnamed value to the formatted output.It is strongly encouraged to use
add(String, long)instead and give value a readable name. -
build
Description copied from interface:BuilderBuilds the object.The returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
- Specified by:
buildin interfaceBuilder<LoggerContext>- Returns:
- The built object.
-