|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MonologFactoryMBean
Defines a MBean for managing the 3 Monolog concepts: Logger, Handler and Level
LoggerInfo| Method Summary | |
|---|---|
void |
addHandlerToLogger(String handlerName,
String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
addTopicToLogger(String topic,
String loggerName)
This method allows adding a topic to a TopicalLogger. |
int |
compareTo(String levelname1,
String levelname2)
Compares two levels. |
boolean |
createHandler(String hn,
String handlertype)
Creates a new handler |
boolean |
defineLevel(String name,
int value)
It defines a new Level with a name and an integer value. |
boolean |
defineLevel(String name,
String value)
It defines a new Level with a name and a string value. |
Map |
getAllHandlerAttributes()
It retrieves the attributes of all handlers |
Map |
getHandlerAttributes(String handlername)
It retrieves the attributes of an handler |
String[] |
getHandlerNames()
It retrieves name of all handler managed by this factory. |
Level |
getLevel(int value)
It retrieves a Level instance which the integer value is equals to the parameter. |
Level |
getLevel(String name)
It retrieves a Level instance which the name is equals to the parameter. |
Level[] |
getLevels()
It retrieves all Level instances defined in this manager. |
LoggerInfo |
getLogger(String loggername)
Creates a logger if it does not exist. |
LoggerInfo |
getLogger(String key,
String resourceBundleName)
Creates a logger if it does not exist. |
LoggerInfo[] |
getLoggers()
It retrieves a list of all loggers. |
Properties |
getMonologProperties()
Retrieves the properties corresponding to the current configuration. |
String |
getResourceBundleName()
Accessors to a resource bundle name associated to a LoggerFactory. |
void |
removeAllHandlersFromLogger(String loggerName)
A TopicalLogger manages a list of Handler instances. |
boolean |
removeHandler(String handlername)
It removes the handler which the name is specified by the parameter |
void |
removeHandlerFromLogger(String handlerName,
String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
removeLevel(String name)
It removes a Level instance to this manager. |
void |
removeTopicFromLogger(String topic,
String loggerName)
This method allows removing a topic to a TopicalLogger. |
void |
setAdditivity(boolean a,
String loggerName)
It assigns the additivity flag for this logger instance. |
void |
setHandlerAttribute(String handlername,
String attributeName,
String value)
Assignes a value to an handler attribute. |
void |
setLoggerLevel(int level,
String loggerName)
It assigns a level to a logger. |
void |
setLoggerLevel(String levelName,
String loggerName)
It assigns a level to a logger. |
void |
setMonologProperties(Properties p)
Configure Monolog with properties. |
void |
setResourceBundleName(String resourceBundleName)
Accessors to a resource bundle name associated to a LoggerFactory. |
| Method Detail |
|---|
boolean defineLevel(String name,
int value)
name - is the name of the new levelvalue - is the integer value of the new level
boolean defineLevel(String name,
String value)
name - is the name of the new levelvalue - is the string value of the new level
void removeLevel(String name)
Level getLevel(String name)
name - is the name of request Level
Level getLevel(int value)
value - is the integer value of request Level
Level[] getLevels()
int compareTo(String levelname1,
String levelname2)
levelname1 - is the name of the first levellevelname2 - is the name of the second level
boolean createHandler(String hn,
String handlertype)
hn - is the name of the handler to createhandlertype - is the type of the parameter. The possible value are
defined in this interface by the XXX_HANDLER_TYPE constants.
boolean removeHandler(String handlername)
handlername - is the name of the handler
String[] getHandlerNames()
Map getHandlerAttributes(String handlername)
handlername - is the name of the handler
Map getAllHandlerAttributes()
void setHandlerAttribute(String handlername,
String attributeName,
String value)
handlername - is the name of the handlerattributeName - is the name of the attributevalue - is the new value of the attributeLoggerInfo getLogger(String loggername)
loggername - is the name of the logger
LoggerInfo getLogger(String key,
String resourceBundleName)
loggername - is the name of the loggerresourceBundleName - allows specifying the name of a
resource bundle in order to internationalise the logging.String getResourceBundleName()
void setResourceBundleName(String resourceBundleName)
LoggerInfo[] getLoggers()
void addHandlerToLogger(String handlerName,
String loggerName)
void removeHandlerFromLogger(String handlerName,
String loggerName)
void removeAllHandlersFromLogger(String loggerName)
void setAdditivity(boolean a,
String loggerName)
void setLoggerLevel(int level,
String loggerName)
level - is an int value corresponding to a levelloggerName - is the name of logger which the level must be set.
void setLoggerLevel(String levelName,
String loggerName)
level - is a string value corresponding to a level defined into the
LevelFactoryloggerName - is the name of logger which the level must be set.
void addTopicToLogger(String topic,
String loggerName)
void removeTopicFromLogger(String topic,
String loggerName)
Properties getMonologProperties()
void setMonologProperties(Properties p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||