Package org.apache.log
Class Priority
java.lang.Object
org.apache.log.Priority
- All Implemented Interfaces:
Serializable
Deprecated.
Will be dropped in 3.3
Class representing and holding constants for priority.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Priority
Deprecated.Developer orientated messages, usually used during development of product.static final Priority
Deprecated.A problem has occurred but it is not fatal.static final Priority
Deprecated.Something caused whole system to fail.static final Priority
Deprecated.Useful information messages such as state changes, client connection, user login etc.static final Priority
Deprecated.Do not log anything.static final Priority
Deprecated.A problem or conflict has occurred but it may be recoverable, then again it could be the start of the system failing. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Deprecated.Get name of priority.static Priority
getPriorityForName
(String priority) Deprecated.Retrieve a Priority object for the name parameter.int
getValue()
Deprecated.Get numerical value associated with priority.boolean
Deprecated.Test whether this priority is greater than other priority.boolean
Deprecated.Test whether this priority is lower than other priority.boolean
isLowerOrEqual
(Priority other) Deprecated.Test whether this priority is lower or equal to other priority.toString()
Deprecated.Overridden string to display Priority in human readable form.
-
Field Details
-
DEBUG
Deprecated.Developer orientated messages, usually used during development of product. -
INFO
Deprecated.Useful information messages such as state changes, client connection, user login etc. -
WARN
Deprecated.A problem or conflict has occurred but it may be recoverable, then again it could be the start of the system failing. -
ERROR
Deprecated.A problem has occurred but it is not fatal. The system will still function. -
FATAL_ERROR
Deprecated.Something caused whole system to fail. This indicates that an administrator should restart the system and try to fix the problem that caused the failure. -
NONE
Deprecated.Do not log anything.
-
-
Method Details
-
getPriorityForName
Deprecated.Retrieve a Priority object for the name parameter.- Parameters:
priority
- the priority name- Returns:
- the Priority for name
-
toString
Deprecated.Overridden string to display Priority in human readable form. -
getValue
public int getValue()Deprecated.Get numerical value associated with priority.- Returns:
- the numerical value
-
getName
Deprecated.Get name of priority.- Returns:
- the priorities name
-
isGreater
Deprecated.Test whether this priority is greater than other priority.- Parameters:
other
- the other Priority- Returns:
- TRUE if the priority is greater else FALSE
-
isLower
Deprecated.Test whether this priority is lower than other priority.- Parameters:
other
- the other Priority- Returns:
- TRUE if the priority is lower else FALSE
-
isLowerOrEqual
Deprecated.Test whether this priority is lower or equal to other priority.- Parameters:
other
- the other Priority- Returns:
- TRUE if the priority is lower or equal else FALSE
-