Class CustomLevels
- java.lang.Object
-
- org.apache.logging.log4j.core.config.CustomLevels
-
@Plugin(name="CustomLevels", category="Core", printObject=true) public final class CustomLevels extends java.lang.Object
Container for CustomLevelConfig objects.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CustomLevelConfig>customLevels
-
Constructor Summary
Constructors Modifier Constructor Description privateCustomLevels(CustomLevelConfig[] customLevels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomLevelscreateCustomLevels(CustomLevelConfig[] customLevels)Create a CustomLevels object to contain all the CustomLevelConfigs.java.util.List<CustomLevelConfig>getCustomLevels()Returns a list of theCustomLevelConfigobjects created during configuration.
-
-
-
Field Detail
-
customLevels
private final java.util.List<CustomLevelConfig> customLevels
-
-
Constructor Detail
-
CustomLevels
private CustomLevels(CustomLevelConfig[] customLevels)
-
-
Method Detail
-
createCustomLevels
@PluginFactory public static CustomLevels createCustomLevels(@PluginElement("CustomLevels") CustomLevelConfig[] customLevels)
Create a CustomLevels object to contain all the CustomLevelConfigs.- Parameters:
customLevels- An array of CustomLevelConfigs.- Returns:
- A CustomLevels object.
-
getCustomLevels
public java.util.List<CustomLevelConfig> getCustomLevels()
Returns a list of theCustomLevelConfigobjects created during configuration.- Returns:
- the configured custom levels
-
-