Lines Matching defs:Severity
38 public final class Severity extends Level {
87 public static final Severity EMERG = new Severity(LOG_EMERG,
93 public static final Severity ALERT = new Severity(LOG_ALERT,
99 public static final Severity CRIT = new Severity(LOG_CRIT,
105 public static final Severity ERR = new Severity(LOG_ERR,
111 public static final Severity WARNING = new Severity(LOG_WARNING,
117 public static final Severity NOTICE = new Severity(LOG_NOTICE,
123 public static final Severity INFO = new Severity(LOG_INFO,
129 public static final Severity DEBUG = new Severity(LOG_DEBUG,
136 severityMap.put("WARN", Severity.WARNING);
137 severityMap.put("ERROR", Severity.ERR);
171 * Constructs a Severity with the given native severity, Java
174 private Severity(int severity, int level, String name)
184 * Returns the Severity closest in meaning to the given Level.
186 * proper Severity for Records which only specify a Level.
189 * <li>Level.SEVERE or higher becomes Severity.ERR
190 * <li>Level.WARNING becomes Severity.WARNING
191 * <li>Level.INFO becomes Severity.INFO
192 * <li>Level.FINE becomes Severity.DEBUG
198 public static Severity severityForLevel(Level l)
200 if (l instanceof Severity)
201 return (Severity)l;
226 * Returns the Severity object with the given name, interpreted
234 Severity severity = (Severity)severityMap.get(
244 * Returns the Severity object with the given name, interpreted
250 public static Severity getSeverityWithName(String name)
252 return ((Severity)parse(name));