public class LogManagerHelper extends Object
| Constructor and Description |
|---|
LogManagerHelper() |
@Nullable public static Level getLevelProperty(@Nonnull LogManager manager, @Nonnull String name, @Nullable Level defaultValue)
LogManager.getLevelProperty(String, java.util.logging.Level).
If the property is not defined or cannot be parsed we return the given default value.@Nullable public static Filter getFilterProperty(@Nonnull LogManager manager, @Nullable String name, @Nullable Filter defaultValue)
LogManager.getFilterProperty(String, java.util.logging.Filter).
We return an instance of the class named by the "name" property.
If the property is not defined or has problems we return the defaultValue.public static Formatter getFormatterProperty(@Nonnull LogManager manager, @Nullable String name, @Nullable Formatter defaultValue)
LogManager.getFormatterProperty(String, java.util.logging.Formatter) .
We return an instance of the class named by the "name" property.
If the property is not defined or has problems we return the defaultValue.public static String getStringProperty(@Nonnull LogManager manager, @Nullable String name, String defaultValue)
LogManager.getStringProperty(String, String).
If the property is not defined we return the given default value.public static int getIntProperty(@Nonnull LogManager manager, @Nullable String name, int defaultValue)
LogManager.getIntProperty(String, int).
Method to get an integer property.
If the property is not defined or cannot be parsed we return the given default value.public static boolean getBooleanProperty(@Nonnull LogManager manager, @Nullable String name, boolean defaultValue)
LogManager.getIntProperty(String, int).
Method to get a boolean property.
If the property is not defined or cannot be parsed we return the given default value.Copyright © 2014. All rights reserved.