Class Priority
- java.lang.Object
-
- org.apache.logging.log4j.core.net.Priority
-
public class Priority extends java.lang.ObjectThe Priority used in the Syslog system. Calculated from the Facility and Severity values.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FacilitygetFacility()Returns the Facility.static intgetPriority(Facility facility, Level level)Returns the priority value based on the Facility and Log Level.SeveritygetSeverity()Returns the Severity.intgetValue()Returns the value of this Priority.private static inttoPriority(Facility aFacility, Severity aSeverity)java.lang.StringtoString()
-
-
-
Method Detail
-
getPriority
public static int getPriority(Facility facility, Level level)
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
public Facility getFacility()
Returns the Facility.- Returns:
- the Facility.
-
getSeverity
public Severity getSeverity()
Returns the Severity.- Returns:
- the Severity.
-
getValue
public int getValue()
Returns the value of this Priority.- Returns:
- the value of this Priority.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-