- All Implemented Interfaces:
Serializable,Comparable<FileHandlerProperty>,Constable,LogProperty
Configuration property set of the
FileHandler.- Author:
- David Matejcek
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the FileHandler should append onto any existing files (defaults to false).How many output files to cycle through (defaults to 1).Name of the character set encoding to use (defaults to the default platform encoding).Name of a Filter class to use (defaults to no Filter).Class of theFormatterused with this handlerThe default level for the Handler (defaults toLevel.ALL).approximate maximum amount to write (in bytes) to any one file.Maximum number of concurrent locks held by FileHandler (defaults to 100).Output file name patten, default:%h/java%u.log -
Method Summary
Modifier and TypeMethodDescriptionstatic FileHandlerPropertyReturns the enum constant of this class with the specified name.static FileHandlerProperty[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.glassfish.main.jul.cfg.LogProperty
getPropertyFullName, getPropertyFullName
-
Enum Constant Details
-
APPEND
Whether the FileHandler should append onto any existing files (defaults to false). -
COUNT
How many output files to cycle through (defaults to 1). -
FILTER
Name of a Filter class to use (defaults to no Filter). -
FORMATTER
Class of theFormatterused with this handler -
ENCODING
Name of the character set encoding to use (defaults to the default platform encoding). -
LEVEL
The default level for the Handler (defaults toLevel.ALL). -
LIMIT
approximate maximum amount to write (in bytes) to any one file. If this is zero, then there is no limit. (Defaults to no limit). -
MAXLOCKS
Maximum number of concurrent locks held by FileHandler (defaults to 100). -
PATTERN
Output file name patten, default:%h/java%u.log
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPropertyName
- Specified by:
getPropertyNamein interfaceLogProperty- Returns:
- a name of the property, used as a last part of property name in logging.properties
-
getPropertyFullName
- Returns:
- full name using the
FileHandlerclass.
-