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