|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.util.monolog.wrapper.common.AbstractFactory
org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory
public class MonologLoggerFactory
This class wraps the LoggerFactory, HandlerFactory, LevelFactory concepts into the log4j world. This implementation supports also the Configurable interface. Then it is possible to specify a log4j configuration file.
| Field Summary | |
|---|---|
static String |
LOG4J_CF_PROP
|
static String |
LOG4J_CF_VALUE
|
protected static Logger |
rootLogger
The root logger of the logger hierarchy |
| Fields inherited from class org.objectweb.util.monolog.wrapper.common.AbstractFactory |
|---|
CLASSLOADER_ISOLATION, classLoaderIsoltion, debug, handlers, handlerType2className, handlerTypes, intToNames, monologFactoryListeners, nameToLevel, resourceBundleName, rootLoggerName, rootLoggerPrefix |
| Fields inherited from interface org.objectweb.util.monolog.api.MonologFactory |
|---|
DEFAULT, LOG_CONFIGURATION_FILE, LOG_CONFIGURATION_FILE_USE_CLASSPATH, LOG_CONFIGURATION_TYPE, PROPERTY, XML |
| Constructor Summary | |
|---|---|
MonologLoggerFactory()
It intializes the data struture, defines the default level and the root logger. |
|
| Method Summary | |
|---|---|
void |
addLogInfo(Character pattern,
LogInfo logInfoProvider)
Add the extention |
void |
configure(Properties prop)
This method permits to configure the factory with tha specific configuration file: like a log4j.properties |
protected String[][] |
getDefaultHandlerType2className()
|
Logger |
getLogger(String key)
|
Logger |
getLogger(String key,
String rbn)
|
Logger[] |
getLoggers()
|
LogInfo |
getLogInfo(Character pattern)
Gets the provider of the extension |
String |
getWrapperName()
|
void |
removeLogInfo(char pattern)
Remove an extension |
| Methods inherited from class org.objectweb.util.monolog.wrapper.common.AbstractFactory |
|---|
addMonologFactoryListener, createHandler, debug, defineLevel, defineLevel, getHandler, getHandlers, getLevel, getLevel, getLevels, getResourceBundleName, getRootLoggerPrefix, getTopicPrefix, getTopicWithoutPrefix, initHandlerType2className, monoLoggerName, removeHandler, removeLevel, removeMonologFactoryListener, setResourceBundleName, warn |
| 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_CF_PROP
public static final String LOG4J_CF_VALUE
protected static Logger rootLogger
| Constructor Detail |
|---|
public MonologLoggerFactory()
| Method Detail |
|---|
public String getWrapperName()
getWrapperName in class AbstractFactoryprotected String[][] getDefaultHandlerType2className()
getDefaultHandlerType2className in class AbstractFactory
public void configure(Properties prop)
throws Exception
configure in interface MonologFactoryconfigure in class AbstractFactoryExceptionpublic Logger getLogger(String key)
getLogger in interface LoggerFactorygetLogger in class AbstractFactory
public Logger getLogger(String key,
String rbn)
public Logger[] getLoggers()
getLoggers in interface LoggerFactorygetLoggers in class AbstractFactory
public void addLogInfo(Character pattern,
LogInfo logInfoProvider)
pattern - Character corresponding to the info to addlogInfoProvider - instance of info providerpublic void removeLogInfo(char pattern)
pattern - log info patternpublic LogInfo getLogInfo(Character pattern)
pattern -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||