org.objectweb.util.monolog.wrapper.log4jMini
Class FileHandler

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended byorg.apache.log4j.WriterAppender
          extended byorg.apache.log4j.FileAppender
              extended byorg.objectweb.util.monolog.wrapper.log4jMini.FileHandler
All Implemented Interfaces:
org.apache.log4j.Appender, Handler, org.apache.log4j.spi.OptionHandler

public class FileHandler
extends org.apache.log4j.FileAppender
implements Handler

This class is the wrapper to the org.apache.log4j.FileAppender

Author:
Sebastien Chassande-Barrioz

Field Summary
protected  java.util.Hashtable props
           
protected  byte type
           
 
Fields inherited from class org.apache.log4j.FileAppender
bufferedIO, bufferSize, fileAppend, fileName
 
Fields inherited from class org.apache.log4j.WriterAppender
encoding, immediateFlush, qw
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Fields inherited from interface org.objectweb.util.monolog.api.Handler
APPEND_MODE_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE
 
Constructor Summary
FileHandler(byte type, java.lang.String name)
          It Builds a new MonologFileHandler.
 
Method Summary
 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
 byte 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.
 
Methods inherited from class org.apache.log4j.FileAppender
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
 
Methods inherited from class org.apache.log4j.WriterAppender
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.util.monolog.api.Handler
getName, setName
 

Field Detail

type

protected byte type

props

protected java.util.Hashtable props
Constructor Detail

FileHandler

public FileHandler(byte type,
                   java.lang.String name)
It Builds a new MonologFileHandler. It is needed to specify an handler type.

Method Detail

getType

public byte getType()
Description copied from interface: Handler
It retrieves the Handler type

Specified by:
getType in interface Handler

getAttributeNames

public java.lang.String[] getAttributeNames()
Description copied from interface: Handler
It retrieves the attributes of the handler

Specified by:
getAttributeNames in interface Handler

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Description copied from interface: Handler
It retrieves the value of an attribute value of the handler.

Specified by:
getAttribute in interface Handler

setAttribute

public java.lang.Object setAttribute(java.lang.String key,
                                     java.lang.Object value)
Description copied from interface: Handler
It assigns an attributte to the handler.

Specified by:
setAttribute in interface Handler
Parameters:
value - is the attribute value
Returns:
the old value is the attribute was already defined