Class LogProperties.MutableLogProperties.Builder
java.lang.Object
io.jstach.rainbowgum.LogProperties.AbstractBuilder<LogProperties.MutableLogProperties.Builder>
io.jstach.rainbowgum.LogProperties.MutableLogProperties.Builder
- Enclosing interface:
LogProperties.MutableLogProperties
public static final class LogProperties.MutableLogProperties.Builder
extends LogProperties.AbstractBuilder<LogProperties.MutableLogProperties.Builder>
Mutable Log properties builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a mutable log properties.copyProperties(String properties) Parses a string asPropertiesuseful for unit testing with Java multiline string literal.Sets the backing mutable map.Methods inherited from class LogProperties.AbstractBuilder
description, order, removeKeyPrefix, renameKey, withModifier and TypeMethodDescriptiondescription(String description) Description for properties.order(int order) When log properties are coalesced this method is used to resolve order.removeKeyPrefix(String prefix) Removes the prefix from a key before it accesses the underlying properties.Renames the key before it accesses function.with(LogProperties properties) Add a fallback properties.
-
Method Details
-
with
Sets the backing mutable map.- Parameters:
map- backing map.- Returns:
- this.
-
copyProperties
Parses a string asPropertiesuseful for unit testing with Java multiline string literal.- Parameters:
properties- properties as a string.- Returns:
- this.
-
build
Builds a mutable log properties.- Returns:
- mutable log properties.
-