Class CustomLevels
- java.lang.Object
-
- org.apache.logging.log4j.core.config.CustomLevels
-
@Plugin(name="CustomLevels", category="Core", printObject=true) public final class CustomLevels extends Object
Container for CustomLevelConfig objects.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomLevels
createCustomLevels(CustomLevelConfig[] customLevels)
Create a CustomLevels object to contain all the CustomLevelConfigs.List<CustomLevelConfig>
getCustomLevels()
Returns a list of theCustomLevelConfig
objects created during configuration.
-
-
-
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 List<CustomLevelConfig> getCustomLevels()
Returns a list of theCustomLevelConfig
objects created during configuration.- Returns:
- the configured custom levels
-
-