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 Logger |
getJBossLogger(String name)
Returns a JBoss Log Manger logger.
|
static Collection<Logger> |
getJBossLoggers()
Returns a collection of the loggers that exist.
|
static Logger |
getJBossRootLogger()
Returns the root JBoss logger from the JBoss log manager.
|
static Logger |
getLogger(Logger lmLogger)
Gets the log4j logger that is attached to the JBoss Log Manager logger.
|
static Logger |
getLogger(LoggerRepository repository,
String name,
LoggerFactory factory)
Gets the logger.
|
static LoggerRepository |
getLoggerRepository()
Locates the log4j logger repository.
|
static LoggerRepository |
getLoggerRepository(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 Logger getJBossLogger(String name)
name
- the name of the logger.public static LoggerRepository getLoggerRepository()
public static LoggerRepository getLoggerRepository(LogContext logContext)
public static 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(Logger lmLogger)
null
is returned.lmLogger
- the JBoss Log Manager logger.null
if no logger is attached.public static Logger getLogger(LoggerRepository repository, String name, 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<Logger> getJBossLoggers()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.