org.objectweb.util.monolog.wrapper.log4jMini
Class FileHandler
FileAppender
org.objectweb.util.monolog.wrapper.log4jMini.FileHandler
- Handler
public class FileHandler
extends FileAppender
This class is the wrapper to the org.apache.log4j.FileAppender
- Sebastien Chassande-Barrioz
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 |
FileHandler(byte type, String name) - It Builds a new MonologFileHandler.
|
Object | getAttribute(String key) - It retrieves the value of an attribute value of the handler.
|
String[] | getAttributeNames() - It retrieves the attributes of the handler
|
String | getType() - It retrieves the Handler type
|
Object | setAttribute(String key, Object value) - It assigns an attributte to the handler.
|
props
protected Hashtable props
FileHandler
public FileHandler(byte type,
String name)
It Builds a new MonologFileHandler. It is needed to specify an handler
type.
type
- is the handler type. The possible values are the
HandlerFactory.FILE_HANDLER_TYPE or
HandlerFactory.CONSOLE_HANDLER_TYPE.
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
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