ADDITIVITY_FIELD
public static final String ADDITIVITY_FIELD
CLEAN_HANDLERS_FIELD
public static final String CLEAN_HANDLERS_FIELD
DOT
public static final char DOT
HANDLER_FIELD
public static final String HANDLER_FIELD
HANDLER_TYPE_ATTRIBUTE
public static final String HANDLER_TYPE_ATTRIBUTE
HANDLER_TYPE_ATTRIBUTE_CONSOLE_VALUE
public static final String HANDLER_TYPE_ATTRIBUTE_CONSOLE_VALUE
HANDLER_TYPE_ATTRIBUTE_FILE_VALUE
public static final String HANDLER_TYPE_ATTRIBUTE_FILE_VALUE
HANDLER_TYPE_ATTRIBUTE_NTEVENT_VALUE
public static final String HANDLER_TYPE_ATTRIBUTE_NTEVENT_VALUE
HANDLER_TYPE_ATTRIBUTE_ROLLING_FILE_VALUE
public static final String HANDLER_TYPE_ATTRIBUTE_ROLLING_FILE_VALUE
LEVEL_FIELD
public static final String LEVEL_FIELD
LOGGER_FIELD
public static final String LOGGER_FIELD
TOPIC_FIELD
public static final String TOPIC_FIELD
USE_PARENT_FIELD
public static final String USE_PARENT_FIELD
loggerCleaned
protected Vector loggerCleaned
cleanOldHandler
protected void cleanOldHandler(TopicalLogger l)
throws Exception
Clear all the handlers associated to a logger which are not defined into
this file
debug
public void debug(String m)
getDependsLevel
protected String[] getDependsLevel(String expr)
It retrieves the list of the referenced levels in the String parameter.
expr
- is a string which can contain level identifier. The string is
an arithmetic expression which contains number, operator and levels
identifier.
- the list of the referenced levels.
isDefaultLevel
protected boolean isDefaultLevel(Level l)
It checks if the level parameter is a default monolog level. The default
monolog levels are the following:
- FATAL
- ERROR
- WARN
- INFO
- DEBUG
load
public static void load(Properties prop,
MonologFactory mf)
throws Exception
parseHandlerProp
protected Handler parseHandlerProp(Properties prop,
String key,
HandlerFactory hf)
throws Exception
It parses a property entry to build or configure a Handler instance.
prop
- is the property where the entry is reachable.key
- is the entry keyhf
- is the handler factory to use for building a new instance or
fetching existent handlers.
- the handler instance which has been built or configured
parseLevelProp
protected Level parseLevelProp(Properties prop,
String key,
LevelFactory lef)
throws Exception
It parses a property entry to build or configure a Level instance.
prop
- is the property where the entry is reachable.key
- is the entry keylef
- is the level factory to use for building a new instance or
fetching existent levels.
- the level instance which has been built or configured
parseLevelProp
protected Level parseLevelProp(Properties prop,
String key,
LevelFactory lef,
Vector currentLevelParse)
throws Exception
It parses a property entry to build or configure a Level instance.
prop
- is the property where the entry is reachable.key
- is the entry keylef
- is the level factory to use for building a new instance or
fetching existent levels.currentLevelParse
- the list of current level name which are
searched.
parseLoggerProp
protected Logger parseLoggerProp(Properties prop,
String key,
LoggerFactory lof,
HandlerFactory hf,
LevelFactory lef)
throws Exception
It parses a property entry to build or configure a Logger instance.
prop
- is the property where the entry is reachable.key
- is the entry keylof
- is the logger factory to use for building a new instance or
fetching existent loggers.hf
- is the handler factory to use for building a new instance or
fetching existent handlers.lef
- is the level factory to use for building a new instance or
fetching existent levels.
- the level instance which has been built or configured
parseLoggerProp
protected Logger parseLoggerProp(Properties prop,
String key,
MonologFactory mf)
throws Exception
It parses a property entry to build or configure a Logger instance.
prop
- is the property where the entry is reachable.key
- is the entry keymf
- is the monolog factory to use for building a new instance or
fetching existent loggers, handlers or levels.
- the level instance which has been built or configured
read
public void read(Properties prop,
MonologFactory mf)
throws Exception
store
public static void store(Properties prop,
MonologFactory mf)
throws Exception