org.objectweb.util.monolog.wrapper.config
Class BasicHandler
java.lang.Object
org.objectweb.util.monolog.wrapper.config.BasicHandler
- Handler, Serializable
public class BasicHandler
extends java.lang.Object
This class is a basic implementation the Handler interface. It is not linked
to any underlying log system. Therefore all attributes are stored into
internal struture.
- Sebastien Chassande-Barrioz
protected HashMap | attributes - The attributes of the handler are listed by this field.
|
protected String | name - The name of the handler
|
protected String | type - The type of the handler
|
APPEND_MODE_ATTRIBUTE , BUFFER_ATTRIBUTE , CONSOLE_HANDLER_TYPE , FILE_HANDLER_TYPE , FILE_NUMBER_ATTRIBUTE , GENERIC_HANDLER_TYPE , LEVEL_ATTRIBUTE , LOGGER_HANDLER_TYPE , MAX_SIZE_ATTRIBUTE , OUTPUT_ATTRIBUTE , PATTERN_ATTRIBUTE , ROLLING_FILE_HANDLER_TYPE |
attributes
protected HashMap attributes
The attributes of the handler are listed by this field.
key = atribute name
value = attribute value
name
protected String name
The name of the handler
type
protected String type
The type of the handler
BasicHandler
public BasicHandler(String n,
String t)
getAttributes
public Map getAttributes()
setAttribute
public Object setAttribute(String key,
Object value)
- setAttribute in interface Handler
setAttributes
public void setAttributes(Map properties)