org.objectweb.util.monolog.wrapper.log4j

Class RollingFileHandler

Implemented Interfaces:
Handler

public class RollingFileHandler
extends RollingFileAppender
implements Handler

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

Author:
Sebastien Chassande-Barrioz

Field Summary

protected HashMap
prop
This fields contains the properties of the Handler

Fields inherited from interface org.objectweb.util.monolog.api.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

Constructor Summary

RollingFileHandler()
RollingFileHandler(String name)
It Builds a new MonologFileHandler.

Method Summary

Object
getAttribute(String key)
String[]
getAttributeNames()
Map
getAttributes()
String
getType()
Object
setAttribute(String key, Object value)
void
setAttributes(Map attributes)

Field Details

prop

protected HashMap prop
This fields contains the properties of the Handler

Constructor Details

RollingFileHandler

public RollingFileHandler()


RollingFileHandler

public RollingFileHandler(String name)
It Builds a new MonologFileHandler. It is needed to specify an handler type.

Parameters:
name - is the handler name.

Method Details

getAttribute

public Object getAttribute(String key)
Specified by:
getAttribute in interface Handler


getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in interface Handler


getAttributes

public Map getAttributes()


getType

public String getType()
Specified by:
getType in interface Handler


setAttribute

public Object setAttribute(String key,
                           Object value)
Specified by:
setAttribute in interface Handler


setAttributes

public void setAttributes(Map attributes)