log4j-jboss-logmanager 1.0.2.Final-redhat-1

org.apache.log4j
Class JBossLevelMapping

java.lang.Object
  extended by org.apache.log4j.JBossLevelMapping

public class JBossLevelMapping
extends Object

A mapping for jboss-log-manager levels, JUL levels and log4j levels.

Date: 29.11.2011

Author:
James R. Perkins

Field Summary
static org.jboss.logmanager.Level DEFAULT_LEVEL
           
static org.apache.log4j.Level DEFAULT_LOG4J_LEVEL
           
 
Method Summary
static 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(Level level)
          Finds the log4j level for the level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LEVEL

public static final org.jboss.logmanager.Level DEFAULT_LEVEL

DEFAULT_LOG4J_LEVEL

public static final org.apache.log4j.Level DEFAULT_LOG4J_LEVEL
Method Detail

getPriorityFor

public static org.apache.log4j.Level getPriorityFor(Level level)
Finds the log4j level for the level.

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 the log4j level for the level.

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 the jboss-log-manager level for the log4j priority.

Parameters:
level - the log4j level/priority.
Returns:
the jboss-log-manager level or by default Level.DEBUG.

log4j-jboss-logmanager 1.0.2.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.