Method Summary
- priority
- Coupling log level names with priority.
Method Detail
-
<static> priority(level) → {Number}
-
Coupling log level names with priority.
Parameters:
Name Type Description level
String the level to be converted into priority. Admitted values are "FATAL" (5), "ERROR" (4), "WARN" (3), "INFO" (2), "DEBUG" (1). Returns:
a numeric level representing the priority of the specified log level. if an invalid level is specified 0 is returned.- Type
- Number