org.fusesource.web.console.server.logging
Class BrowserAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.fusesource.web.console.server.logging.BrowserAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class BrowserAppender
extends org.apache.log4j.AppenderSkeleton

Version:
$Revision: 1.1 $

Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
BrowserAppender()
           
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent event)
          Appends the event
 void close()
           
 LogEventContainer getContainer()
           
static BrowserAppender getInstance()
          Return the singleton instance
 LogResults getLogEvents(LogFilter filter)
          Finds all the recent logging events for the given filter
 int getMaximumBufferSize()
           
 boolean requiresLayout()
          This appender does not require layout and so return false
 void setContainer(LogEventContainer container)
           
 void setMaximumBufferSize(int maximumBufferSize)
          Sets the maximum buffer size to keep around
protected  LogEvent toLogEvent(org.apache.log4j.spi.LoggingEvent event)
           
protected  java.lang.String toString(org.apache.log4j.spi.LocationInfo value)
           
protected  java.lang.String toString(java.lang.Object value)
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, 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
 

Constructor Detail

BrowserAppender

public BrowserAppender()
Method Detail

getInstance

public static BrowserAppender getInstance()
Return the singleton instance


requiresLayout

public boolean requiresLayout()
This appender does not require layout and so return false

Specified by:
requiresLayout in interface org.apache.log4j.Appender
Specified by:
requiresLayout in class org.apache.log4j.AppenderSkeleton

append

protected void append(org.apache.log4j.spi.LoggingEvent event)
Appends the event

Specified by:
append in class org.apache.log4j.AppenderSkeleton
Parameters:
event - the LoggingEvent to append

close

public void close()
Specified by:
close in interface org.apache.log4j.Appender
Specified by:
close in class org.apache.log4j.AppenderSkeleton

getMaximumBufferSize

public int getMaximumBufferSize()

setMaximumBufferSize

public void setMaximumBufferSize(int maximumBufferSize)
Sets the maximum buffer size to keep around


getContainer

public LogEventContainer getContainer()

setContainer

public void setContainer(LogEventContainer container)

getLogEvents

public LogResults getLogEvents(LogFilter filter)
Finds all the recent logging events for the given filter


toLogEvent

protected LogEvent toLogEvent(org.apache.log4j.spi.LoggingEvent event)

toString

protected java.lang.String toString(org.apache.log4j.spi.LocationInfo value)

toString

protected java.lang.String toString(java.lang.Object value)


Copyright © 2009 FuseSource. All Rights Reserved.