org.objectweb.util.monolog.wrapper.log4j
Class ConsoleHandler
ConsoleAppender
org.objectweb.util.monolog.wrapper.log4j.ConsoleHandler
- Handler
public class ConsoleHandler
extends ConsoleAppender
- Sebastien Chassande-Barrioz
protected HashMap | prop - This fields contains the properties 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 |
prop
protected HashMap prop
This fields contains the properties of the Handler
ConsoleHandler
public ConsoleHandler()
ConsoleHandler
public ConsoleHandler(String name)
It Builds a new ConsoleHandler.
name
- is the handler name.
getAttribute
public Object getAttribute(String key)
It retrieves the value of an attribute value of the handler.
- getAttribute in interface Handler
getAttributeNames
public String[] getAttributeNames()
It retrieves the attributes of the handler
- getAttributeNames in interface Handler
getAttributes
public Map getAttributes()
getType
public String getType()
It retrieves the Handler type
- getType in interface Handler
setAttribute
public Object setAttribute(String key,
Object value)
It assigns an attributte to the handler.
- setAttribute in interface Handler
value
- is the attribute value
- the old value is the attribute was already defined
setAttributes
public void setAttributes(Map attributes)