|
|||||||||
| 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.javaLog.LoggerFactory
public class LoggerFactory
is the LoggerFactory for the wrapper to java.util.logging
| Field Summary | |
|---|---|
static String |
CLASS
This constant means that this java log system must be initialize with a xml file |
static String |
DEFAULT
This constant means that this java log system must be initialize with the default configuration |
static String |
JAVALOG_CONFIGURATION
This constant is used to initialize the factory with the configure method |
static String |
JAVALOG_CONFIGURATION_CLASS
This constant is the properties class name with wich the java log system must be initialized. |
static String |
JAVALOG_CONFIGURATION_FILE
This constant is the properties file name with wich the java log system must be initialized. |
protected static LogManager |
manager
the LogManager of java.util.logging |
static String |
PROPERTY
This constant means that this java log system must be initialize with a property file |
protected static Logger |
rootLogger
the root logger |
| 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 |
|---|
LOG_CONFIGURATION_FILE, LOG_CONFIGURATION_FILE_USE_CLASSPATH, LOG_CONFIGURATION_TYPE, XML |
| Constructor Summary | |
|---|---|
LoggerFactory()
|
|
| Method Summary | |
|---|---|
void |
addLogInfo(Character pattern,
LogInfo logInfoProvider)
Add an extension |
void |
configure(Properties prop)
This method permits to configure the factory. |
protected String[][] |
getDefaultHandlerType2className()
|
Logger |
getLogger(String key)
|
Logger |
getLogger(String key,
String rbn)
|
Logger[] |
getLoggers()
It retrieves a list of all loggers. |
LogInfo |
getLogInfo(Character pattern)
Gets the provider of the extension |
protected Logger |
getMonoLogger(String name,
String resName)
This method allocates org.objectweb.util.monolog.wrapper.javaLog.Logger objects whic are also java.util.logging.Logger and org.objectweb.util.monolog.api.Logger. |
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 |
|---|
protected static LogManager manager
protected static Logger rootLogger
public static final String JAVALOG_CONFIGURATION
public static final String DEFAULT
public static final String PROPERTY
public static final String CLASS
public static final String JAVALOG_CONFIGURATION_FILE
public static final String JAVALOG_CONFIGURATION_CLASS
| Constructor Detail |
|---|
public LoggerFactory()
| Method Detail |
|---|
public String getWrapperName()
getWrapperName in class AbstractFactoryprotected String[][] getDefaultHandlerType2className()
getDefaultHandlerType2className in class AbstractFactory
protected Logger getMonoLogger(String name,
String resName)
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)
throws Exception
pattern - Character corresponding to the info to addlogInfoProvider - instance of info provider
Exceptionpublic 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 | ||||||||