Enum Class RollingPolicySystemProperty
java.lang.Object
java.lang.Enum<RollingPolicySystemProperty>
org.springframework.boot.logging.log4j2.RollingPolicySystemProperty
- All Implemented Interfaces:
Serializable, Comparable<RollingPolicySystemProperty>, Constable
Log4j2 rolling policy system properties that can later be used by log configuration
files.
- Since:
- 4.1.0
- Author:
- HoJoo Moon, Stephane Nicoll
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLogging system property for the cron based schedule.Logging system property for the rolled-over log file name pattern.Logging system property for the file log max size.Logging system property for the file log max history.Logging system property for the rolling policy strategy.Logging system property for the rolling policy time interval.Logging system property for the rolling policy time modulate flag. -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of environment variable that can be used to access this property.static RollingPolicySystemPropertyReturns the enum constant of this class with the specified name.static RollingPolicySystemProperty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE_NAME_PATTERN
Logging system property for the rolled-over log file name pattern. -
MAX_FILE_SIZE
Logging system property for the file log max size. -
MAX_HISTORY
Logging system property for the file log max history. -
STRATEGY
Logging system property for the rolling policy strategy. -
TIME_INTERVAL
Logging system property for the rolling policy time interval. -
TIME_MODULATE
Logging system property for the rolling policy time modulate flag. -
CRON
Logging system property for the cron based schedule.
-
-
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
-
getEnvironmentVariableName
Return the name of environment variable that can be used to access this property.- Returns:
- the environment variable name
-