| |
|
| java.lang.Object org.objectweb.util.monolog.wrapper.config.BasicFactory
BasicFactory | public class BasicFactory implements MonologFactory,Serializable(Code) | | This class is a basic implementation of the monolog factories
(HandlerFactory, LoggerFactory and LevelFactory). It does not linked to an
any underlying log system.
author: Sebastien Chassande-Barrioz |
Field Summary | |
protected HashMap | handlers This field references the handler instance by their names.
key = a String object which is an handler name. | protected HashMap | 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 HashMap | loggers This field references the handler instance by their names.
key = a String object which is a logger topic. | protected HashMap | 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 resource bundle linked to the LoggerFactory. |
Constructor Summary | |
public | BasicFactory() It intializes the data struture, defines the default level and the root
logger. |
handlers | protected HashMap handlers(Code) | | This field references the handler instance by their names.
key = a String object which is an handler name.
value = the unique handler instance which has the key for name.
|
intToNames | protected HashMap intToNames(Code) | | 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. The strings represent the
name which match to the integer value. Indeed both name can be associated
to the same integer value.
|
loggers | protected HashMap loggers(Code) | | This field references the handler instance by their names.
key = a String object which is a logger topic.
value = the unique handler instance which has the key for name.
|
nameToLevel | protected HashMap nameToLevel(Code) | | This field references the level instances by their names.
key = a level name
value = the unique Level instance linked to the name.
|
resourceBundleName | protected String resourceBundleName(Code) | | The resource bundle linked to the LoggerFactory.
|
BasicFactory | public BasicFactory()(Code) | | It intializes the data struture, defines the default level and the root
logger.
|
defineDefaultLevels | protected void defineDefaultLevels()(Code) | | It initializes the default monolog level:
- DEBUG: 10 000
- INFO: 20 000
- WARN: 30 000
- ERROR: 40 000
- FATAL: 50 000
|
defineRootLogger | protected void defineRootLogger()(Code) | | It defines the level of the root logger to WARN.
|
getResourceBundleName | public String getResourceBundleName()(Code) | | |
setResourceBundleName | public void setResourceBundleName(String rbn)(Code) | | |
|
|
|