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.Level
DEFAULT_LEVEL
static org.apache.log4j.Level
DEFAULT_LOG4J_LEVEL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Level
getLevelFor(org.apache.log4j.Priority level)
Finds thejboss-log-manager level
for the log4j priority.static org.apache.log4j.Level
getPriorityFor(int level)
Finds thelog4j level
for thelevel
.static org.apache.log4j.Level
getPriorityFor(Level level)
Finds thelog4j level
for thelevel
.
-
-
-
Method Detail
-
getPriorityFor
public static org.apache.log4j.Level getPriorityFor(Level level)
Finds thelog4j level
for thelevel
.- Parameters:
level
- the JUL logging level.- Returns:
- the log4j logging level or
null
if it cold not be found.
-
getPriorityFor
public static org.apache.log4j.Level getPriorityFor(int level)
Finds thelog4j level
for thelevel
.- Parameters:
level
- the JUL logging level.- Returns:
- the log4j logging level or
null
if it cold not be found.
-
getLevelFor
public static Level getLevelFor(org.apache.log4j.Priority level)
Finds thejboss-log-manager level
for the log4j priority.- Parameters:
level
- the log4j level/priority.- Returns:
- the jboss-log-manager level or by default
Level.DEBUG
.
-
-