public class JBossLevelMapping
extends java.lang.Object
jboss-log-manager levels,
JUL levels and log4j levels.
Date: 29.11.2011| Modifier and Type | Field and Description |
|---|---|
static org.jboss.logmanager.Level |
DEFAULT_LEVEL |
static org.apache.log4j.Level |
DEFAULT_LOG4J_LEVEL |
private static java.util.Map<java.util.logging.Level,org.apache.log4j.Level> |
priorityMap |
| Modifier | Constructor and Description |
|---|---|
private |
JBossLevelMapping() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.logging.Level |
getLevelFor(org.apache.log4j.Priority level)
Finds the
jboss-log-manager level for the log4j priority. |
static org.apache.log4j.Level |
getPriorityFor(int level)
Finds the
log4j level for the level. |
static org.apache.log4j.Level |
getPriorityFor(java.util.logging.Level level)
Finds the
log4j level for the level. |
public static final org.jboss.logmanager.Level DEFAULT_LEVEL
public static final org.apache.log4j.Level DEFAULT_LOG4J_LEVEL
private static final java.util.Map<java.util.logging.Level,org.apache.log4j.Level> priorityMap
public static org.apache.log4j.Level getPriorityFor(java.util.logging.Level level)
log4j level for the level.level - the JUL logging level.null if it cold not be found.public static org.apache.log4j.Level getPriorityFor(int level)
log4j level for the level.level - the JUL logging level.null if it cold not be found.public static java.util.logging.Level getLevelFor(org.apache.log4j.Priority level)
jboss-log-manager level for the log4j priority.level - the log4j level/priority.Level.DEBUG.