|
log4j-jboss-logmanager 1.0.2.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.JBossLogManagerFacade
public class JBossLogManagerFacade
A simple facade to interact between LogManager
and LogManager
.
Field Summary | |
---|---|
static String |
JBL_ROOT_NAME
|
static String |
LOG4J_ROOT_NAME
|
Method Summary | |
---|---|
static Logger |
exists(String name)
Checks the log context for an attached logger. |
static org.jboss.logmanager.Logger |
getJBossLogger(String name)
Returns a JBoss Log Manger logger. |
static Collection<org.jboss.logmanager.Logger> |
getJBossLoggers()
Returns a collection of the loggers that exist. |
static org.jboss.logmanager.Logger |
getJBossRootLogger()
Returns the root JBoss logger from the JBoss log manager. |
static Logger |
getLogger(org.jboss.logmanager.Logger lmLogger)
Gets the log4j logger that is attached to the JBoss Log Manager logger. |
static Logger |
getLogger(org.apache.log4j.spi.LoggerRepository repository,
String name,
org.apache.log4j.spi.LoggerFactory factory)
Gets the logger. |
static org.apache.log4j.spi.LoggerRepository |
getLoggerRepository()
Locates the log4j logger repository. |
static org.apache.log4j.spi.LoggerRepository |
getLoggerRepository(org.jboss.logmanager.LogContext logContext)
|
static Collection<Logger> |
getLoggers()
Returns a collection of the loggers that exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LOG4J_ROOT_NAME
public static final String JBL_ROOT_NAME
Method Detail |
---|
public static org.jboss.logmanager.Logger getJBossLogger(String name)
name
- the name of the logger.
public static org.apache.log4j.spi.LoggerRepository getLoggerRepository()
public static org.apache.log4j.spi.LoggerRepository getLoggerRepository(org.jboss.logmanager.LogContext logContext)
public static org.jboss.logmanager.Logger getJBossRootLogger()
public static Logger exists(String name)
null
is
returned.
name
- the name of the logger to check.
null
if the logger does not exist.public static Logger getLogger(org.jboss.logmanager.Logger lmLogger)
null
is returned.
lmLogger
- the JBoss Log Manager logger.
null
if no logger is attached.public static Logger getLogger(org.apache.log4j.spi.LoggerRepository repository, String name, org.apache.log4j.spi.LoggerFactory factory)
repository
- the repository the logger should be set to use.name
- the name of the logger.factory
- the factory to create the logger if it does not exist.
public static Collection<Logger> getLoggers()
public static Collection<org.jboss.logmanager.Logger> getJBossLoggers()
|
log4j-jboss-logmanager 1.0.2.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |