java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.apache.log4j.WriterAppender
org.apache.log4j.ConsoleAppender
ConsoleAppender appends log events to System.out or
 System.err using a layout specified by the user. The
 default target is System.out.
| Field Summary | |
| static String | SYSTEM_ERR | 
| static String | SYSTEM_OUT | 
| protected  String | target | 
| Fields inherited from class org.apache.log4j.WriterAppender | 
| encoding, immediateFlush, qw | 
| Fields inherited from class org.apache.log4j.AppenderSkeleton | 
| closed, errorHandler, headFilter, layout, name, tailFilter, threshold | 
| Constructor Summary | |
| ConsoleAppender()The default constructor does nothing. | |
| ConsoleAppender(Layout layout) | |
| ConsoleAppender(Layout layout,
                String target) | |
| Method Summary | |
|  void | activateOptions()Does nothing. | 
| protected  void | closeWriter()This method overrides the parent WriterAppender.closeWriter()implementation to do nothing because
  the console stream is not ours to close. | 
|  String | getTarget()Returns the current value of the Target property. | 
|  void | setTarget(String value)Sets the value of the Target option. | 
| Methods inherited from class org.apache.log4j.WriterAppender | 
| append, checkEntryConditions, close, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader | 
| 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 | 
| clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String SYSTEM_OUT
public static final String SYSTEM_ERR
protected String target
| Constructor Detail | 
public ConsoleAppender()
public ConsoleAppender(Layout layout)
public ConsoleAppender(Layout layout,
                       String target)
| Method Detail | 
public void setTarget(String value)
public String getTarget()
setTarget(java.lang.String).
public void activateOptions()
WriterAppender
activateOptions in interface OptionHandleractivateOptions in class WriterAppenderprotected final void closeWriter()
WriterAppender.closeWriter() implementation to do nothing because
  the console stream is not ours to close.
closeWriter in class WriterAppenderCopyright © 2000 Micro Focus International Limited.  All rights reserved.  
This document and the proprietary marks and names used herein are protected by international law.