de.mindcrimeilab.swing.log4j
Class SwingConsoleAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by de.mindcrimeilab.swing.log4j.SwingConsoleAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class SwingConsoleAppender
extends org.apache.log4j.AppenderSkeleton
implements org.apache.log4j.Appender

Log4j appender mainly derived from LF5Appender from log4j.

Version:
$Revision: 165 $
Author:
Michael Engelhardt, $Author: agony $

Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
SwingConsoleAppender()
           
SwingConsoleAppender(org.apache.log4j.Layout layout)
           
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent event)
           
 void close()
           
 SwingConsole getConsole()
           
 boolean requiresLayout()
           
 void setConsole(SwingConsole console)
           
 
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
 
Methods inherited from interface org.apache.log4j.Appender
addFilter, clearFilters, doAppend, getErrorHandler, getFilter, getLayout, getName, setErrorHandler, setLayout, setName
 

Constructor Detail

SwingConsoleAppender

public SwingConsoleAppender()

SwingConsoleAppender

public SwingConsoleAppender(org.apache.log4j.Layout layout)
Method Detail

getConsole

public SwingConsole getConsole()
Returns:
the console

setConsole

public void setConsole(SwingConsole console)
Parameters:
console - the console to set

append

protected void append(org.apache.log4j.spi.LoggingEvent event)
Specified by:
append in class org.apache.log4j.AppenderSkeleton

close

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

requiresLayout

public boolean requiresLayout()
Specified by:
requiresLayout in interface org.apache.log4j.Appender
Specified by:
requiresLayout in class org.apache.log4j.AppenderSkeleton


Copyright © 2010. All Rights Reserved.