Sea 0.4.0

Class ColorConsoleAppender

  extended byorg.apache.log4j.AppenderSkeleton
      extended byorg.apache.log4j.WriterAppender
          extended byorg.apache.log4j.ConsoleAppender
              extended bygov.lbl.dsd.sea.nio.util.ColorConsoleAppender
All Implemented Interfaces:
Appender, OptionHandler

public class ColorConsoleAppender
extends ConsoleAppender

Log4J Appender which prints to System.out and shows different log levels in different colors; very useful for effectively sieving through large number of log messages. Colors are used only on Unix, and ignored on Windows because we don't know how to do it. (If it's possible and you know how, submit a patch!); If you wish to use this appender let log4j know about it by adding "log4j.appender.CONSOLE=gov.lbl.dsd.sea.nio.util.ColorConsoleAppender" to the file.

$Revision: 1.1 $, $Date: 2004/06/17 18:34:39 $

Field Summary
Fields inherited from class org.apache.log4j.ConsoleAppender
Constructor Summary
Methods inherited from class org.apache.log4j.ConsoleAppender
activateOptions, getTarget, setTarget
Methods inherited from class org.apache.log4j.WriterAppender
append, close, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ColorConsoleAppender()

Sea 0.4.0