Class CustomLevel
java.lang.Object
java.util.logging.Level
com.clumd.projects.java_custom_logging.logging.common.CustomLevel
- All Implemented Interfaces:
LogLevel,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomLevelstatic final Stringstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevelstatic final CustomLevel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCustomLevel(@NonNull String level, int priority) protectedCustomLevel(@NonNull String level, int priority, @NonNull LogLevelFormat format) protectedCustomLevel(@NonNull String level, int priority, @NonNull String levelFormat) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<CustomLevel> checkForCustomLevel(@NonNull String level) static Optional<CustomLevel> convertJulEquivalent(@NonNull Level level) booleanGet the formatting this Log Level should be displayed withGet the name of this Log Level.intGet the priority of this Log LevelinthashCode()static CustomLevelstatic CustomLevelof(@NonNull String level, int priority, @NonNull LogLevelFormat format) static CustomLevelstatic CustomLevelbooleanweakEquals(Object other) Methods inherited from class java.util.logging.Level
getLocalizedName, getName, getResourceBundleName, intValue, toString
-
Field Details
-
COLOUR_RESET
- See Also:
-
ALL
-
OFF
-
NONE
-
SHUTDOWN
-
EMERGENCY
-
FATAL
-
CRITICAL
-
SEVERE
-
ERROR
-
FAILURE
-
WARNING
-
IMPORTANT
-
NOTIFICATION
-
INFO
-
SUCCESS
-
DATA
-
CONFIG
-
VERBOSE
-
FINE
-
MINOR
-
DEBUG
-
FINER
-
TESTING
-
TRACE
-
FINEST
-
-
Constructor Details
-
CustomLevel
-
CustomLevel
-
CustomLevel
protected CustomLevel(@NonNull @NonNull String level, int priority, @NonNull @NonNull LogLevelFormat format)
-
-
Method Details
-
convertJulEquivalent
-
checkForCustomLevel
-
of
-
of
public static CustomLevel of(@NonNull @NonNull String level, int priority, @NonNull @NonNull String levelFormat) -
of
public static CustomLevel of(@NonNull @NonNull String level, int priority, @NonNull @NonNull LogLevelFormat format) -
parse
- Throws:
IllegalArgumentException
-
equals
-
weakEquals
-
hashCode
public int hashCode() -
getLevelName
Description copied from interface:LogLevelGet the name of this Log Level.- Specified by:
getLevelNamein interfaceLogLevel- Returns:
- The Name of this Custom Log Level
-
getPriority
public int getPriority()Description copied from interface:LogLevelGet the priority of this Log Level- Specified by:
getPriorityin interfaceLogLevel- Returns:
- The priority of this Log Level
-
getLevelFormat
Description copied from interface:LogLevelGet the formatting this Log Level should be displayed with- Specified by:
getLevelFormatin interfaceLogLevel- Returns:
- The escape codes required to display log messages at this Log Level.
-