org.objectweb.util.monolog.wrapper.log4j
Class SocketHubHandler

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.net.SocketHubAppender
          extended by org.objectweb.util.monolog.wrapper.log4j.SocketHubHandler
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler, Handler

public class SocketHubHandler
extends org.apache.log4j.net.SocketHubAppender
implements Handler

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

Author:
Sebastien Chassande-Barrioz, Olivier Beyler

Field Summary
protected  HashMap prop
          This fields contains the properties of the Handler
 
Fields inherited from class org.apache.log4j.net.SocketHubAppender
ZONE
 
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, 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 Summary
SocketHubHandler()
           
SocketHubHandler(String name)
          It Builds a new SocketHandler.
 
Method Summary
 Object getAttribute(String key)
           
 String[] getAttributeNames()
           
 Map getAttributes()
           
 String getType()
           
 Object setAttribute(String key, Object value)
           
 void setAttributes(Map attributes)
           
 
Methods inherited from class org.apache.log4j.net.SocketHubAppender
activateOptions, append, cleanUp, close, createServerSocket, getApplication, getBufferSize, getLocationInfo, getPort, isAdvertiseViaMulticastDNS, requiresLayout, setAdvertiseViaMulticastDNS, setApplication, setBufferSize, setLocationInfo, setPort
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, 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

prop

protected HashMap prop
This fields contains the properties of the Handler

Constructor Detail

SocketHubHandler

public SocketHubHandler()

SocketHubHandler

public SocketHubHandler(String name)
It Builds a new SocketHandler.

Parameters:
name - is the handler name.
Method Detail

getAttributes

public Map getAttributes()

setAttributes

public void setAttributes(Map attributes)

getType

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

getAttributeNames

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

getAttribute

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

setAttribute

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


Copyright © 2012 OW2 Consortium. All Rights Reserved.