public class JBossLogManagerFacade extends Object
LogManager
and LogManager
.Modifier and Type | Field and Description |
---|---|
static String |
JBL_ROOT_NAME |
static String |
LOG4J_ROOT_NAME |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String LOG4J_ROOT_NAME
public static final String JBL_ROOT_NAME
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()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.