Package org.apache.log4j
Class JBossLevelMapping
- java.lang.Object
-
- org.apache.log4j.JBossLevelMapping
-
public class JBossLevelMapping extends Object
- Author:
- James R. Perkins
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logmanager.LevelDEFAULT_LEVELstatic org.apache.log4j.LevelDEFAULT_LOG4J_LEVEL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LevelgetLevelFor(org.apache.log4j.Priority level)Finds thejboss-log-manager levelfor the log4j priority.static org.apache.log4j.LevelgetPriorityFor(int level)Finds thelog4j levelfor thelevel.static org.apache.log4j.LevelgetPriorityFor(Level level)Finds thelog4j levelfor thelevel.
-
-
-
Method Detail
-
getPriorityFor
public static org.apache.log4j.Level getPriorityFor(Level level)
Finds thelog4j levelfor thelevel.- Parameters:
level- the JUL logging level.- Returns:
- the log4j logging level or
nullif it cold not be found.
-
getPriorityFor
public static org.apache.log4j.Level getPriorityFor(int level)
Finds thelog4j levelfor thelevel.- Parameters:
level- the JUL logging level.- Returns:
- the log4j logging level or
nullif it cold not be found.
-
getLevelFor
public static Level getLevelFor(org.apache.log4j.Priority level)
Finds thejboss-log-manager levelfor the log4j priority.- Parameters:
level- the log4j level/priority.- Returns:
- the jboss-log-manager level or by default
Level.DEBUG.
-
-