Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable |
props |
protected byte |
type |
bufferedIO, bufferSize, fileAppend, fileName
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
APPEND_MODE_ATTRIBUTE, BUFFER_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, JMX_HANDLER_TYPE, LEVEL_ATTRIBUTE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE
Constructor and Description |
---|
FileHandler(byte type,
java.lang.String name)
It Builds a new MonologFileHandler.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String key)
It retrieves the value of an attribute value of the handler.
|
java.lang.String[] |
getAttributeNames()
It retrieves the attributes of the handler
|
java.lang.String |
getType()
It retrieves the Handler type
|
java.lang.Object |
setAttribute(java.lang.String key,
java.lang.Object value)
It assigns an attributte to the handler.
|
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, subAppend, writeFooter, writeHeader
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
public FileHandler(byte type, java.lang.String name)
type
- is the handler type. The possible values are the
HandlerFactory.FILE_HANDLER_TYPE or
HandlerFactory.CONSOLE_HANDLER_TYPE.public java.lang.String getType()
Handler
public java.lang.String[] getAttributeNames()
Handler
getAttributeNames
in interface Handler
public java.lang.Object getAttribute(java.lang.String key)
Handler
getAttribute
in interface Handler
key
- is an attribute namepublic java.lang.Object setAttribute(java.lang.String key, java.lang.Object value)
Handler
setAttribute
in interface Handler
key
- is the attribute namevalue
- is the attribute value