|
||||||||||
| 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
public abstract class AbstractFactory
| Field Summary | |
|---|---|
static String |
CLASSLOADER_ISOLATION
|
static boolean |
classLoaderIsoltion
|
static boolean |
debug
Inidicates if the monolog wrapper must be logged itself. |
protected Map |
handlers
This field references the handler instance by their names. key = a String object which is an handler name. |
static String[][] |
handlerType2className
|
static String[] |
handlerTypes
|
protected Map |
intToNames
This field reference the level names by their integer value. key = a java.lang.Integer which the value is the level value = a String or an ArrayList of String. |
protected Collection |
monologFactoryListeners
This field references the MonolgFactoryListener instance by their names. key = a String object which is an handler name. |
protected Map |
nameToLevel
This field references the level instances by their names. key = a level name value = the unique Level instance linked to the name. |
protected String |
resourceBundleName
The default resource bundle of this factory |
protected static String |
rootLoggerName
Name of the root logger. |
protected static String |
rootLoggerPrefix
Root logger prefix, i.e. |
| 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 | |
|---|---|
AbstractFactory()
It initializes the default monolog level: INHERIT, DEBUG, INFO, WARN, ERROR, FATAL |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.util.monolog.api.MonologFactory |
|---|
addLogInfo, getLogInfo, removeLogInfo |
| Methods inherited from interface org.objectweb.util.monolog.api.LoggerFactory |
|---|
getLogger |
| Field Detail |
|---|
public static final String CLASSLOADER_ISOLATION
public static String[] handlerTypes
public static String[][] handlerType2className
public static boolean classLoaderIsoltion
public static boolean debug
protected static String rootLoggerPrefix
rootLoggerName followed by '.'.
protected static String rootLoggerName
protected String resourceBundleName
protected Map nameToLevel
protected Map intToNames
protected Map handlers
protected Collection monologFactoryListeners
| Constructor Detail |
|---|
public AbstractFactory()
| Method Detail |
|---|
public static String getRootLoggerPrefix()
public static String getTopicWithoutPrefix(String topic)
protected static String monoLoggerName(String name)
name - user defined name
public static void debug(String m)
m - the message to log.public static void warn(String m)
public abstract String getWrapperName()
protected void initHandlerType2className()
protected abstract String[][] getDefaultHandlerType2className()
public abstract void configure(Properties prop)
throws Exception
configure in interface MonologFactoryExceptionpublic abstract Logger getLogger(String key)
getLogger in interface LoggerFactorypublic abstract Logger[] getLoggers()
getLoggers in interface LoggerFactorypublic String getTopicPrefix()
getTopicPrefix in interface LoggerFactorypublic String getResourceBundleName()
getResourceBundleName in interface LoggerFactorypublic void setResourceBundleName(String rbn)
setResourceBundleName in interface LoggerFactory
public Handler createHandler(String hn,
String handlertype)
createHandler in interface HandlerFactorypublic Handler[] getHandlers()
getHandlers in interface HandlerFactorypublic Handler getHandler(String hn)
getHandler in interface HandlerFactorypublic Handler removeHandler(String hn)
removeHandler in interface HandlerFactory
public Level defineLevel(String name,
int value)
defineLevel in interface LevelFactory
public Level defineLevel(String name,
String value)
defineLevel in interface LevelFactorypublic Level getLevel(String name)
getLevel in interface LevelFactorypublic Level getLevel(int value)
getLevel in interface LevelFactorypublic Level[] getLevels()
getLevels in interface LevelFactorypublic void removeLevel(String name)
removeLevel in interface LevelFactorypublic void addMonologFactoryListener(MonologFactoryListener mfl)
addMonologFactoryListener in interface MonologFactorypublic void removeMonologFactoryListener(MonologFactoryListener mfl)
removeMonologFactoryListener in interface MonologFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||