Class Priority
java.lang.Object
org.apache.logging.log4j.core.net.Priority
The Priority used in the Syslog system. Calculated from the Facility and Severity values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Facility.static int
getPriority
(Facility facility, Level level) Returns the priority value based on the Facility and Log Level.Returns the Severity.int
getValue()
Returns the value of this Priority.toString()
-
Constructor Details
-
Priority
The Constructor.- Parameters:
facility
- The Facility.severity
- The Severity.
-
-
Method Details
-
getPriority
Returns the priority value based on the Facility and Log Level.- Parameters:
facility
- The Facility.level
- The Level.- Returns:
- The integer value of the priority.
-
getFacility
Returns the Facility.- Returns:
- the Facility.
-
getSeverity
Returns the Severity.- Returns:
- the Severity.
-
getValue
public int getValue()Returns the value of this Priority.- Returns:
- the value of this Priority.
-
toString
-