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
Modifier and TypeMethodDescriptionstatic CustomLevels
createCustomLevels
(CustomLevelConfig[] customLevels) Create a CustomLevels object to contain all the CustomLevelConfigs.Returns a list of theCustomLevelConfig
objects created during configuration.
-
Method Details
-
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
Returns a list of theCustomLevelConfig
objects created during configuration.- Returns:
- the configured custom levels
-