com.sap.tc.logging

Class ConsoleLog

java.lang.Object
  extended bycom.sap.tc.logging.ExceptionHandling
      extended bycom.sap.tc.logging.Log
          extended bycom.sap.tc.logging.StreamLog
              extended bycom.sap.tc.logging.ConsoleLog
All Implemented Interfaces:
Cloneable, ILog, IObjectInfo

public class ConsoleLog
extends StreamLog

Writes log records to System.err.


Field Summary
 
Fields inherited from class com.sap.tc.logging.Log
LOG_ACCESSABILITY_TYPE_LOCAL_LOG, LOG_ACCESSABILITY_TYPE_NORMAL_LOG, LOG_ACCESSABILITY_TYPE_PRIVATE_LOG, STATUS_CLOSED, STATUS_INVALID, STATUS_OPENED
 
Fields inherited from class com.sap.tc.logging.ExceptionHandling
EX_NO_FILTER_EMSG, EX_NO_FORMATTER_EMSG, EX_NO_INSTANCE_EMSG
 
Constructor Summary
ConsoleLog()
          Configures this console log.
ConsoleLog(Formatter formatter)
          Configures this console log for writing with a custom formatter.
 
Method Summary
protected  void closeInt()
          Closes output of this log object.
 boolean equals(Object object)
           
 
Methods inherited from class com.sap.tc.logging.StreamLog
clone, flushInt, getEncoding, getOutputStream, openInt, setEncoding, writeInt
 
Methods inherited from class com.sap.tc.logging.Log
addFilter, addOwner, beGroup, beLogged, close, finalize, flush, getDescription, getEffectiveSeverity, getFilters, getFooter, getFormatter, getHeader, getLocalLogOwner, getLoggedCount, getLogName, getLogTypeAccessibility, getName, getNumberOfLogRecordsWritten, getOwners, getRecord, getVerInUse, isAutoFlush, isClosed, isFiltersAgreeing, isHeaderWritten, isOpened, isSuppressing, open, removeFilter, removeFilters, removeOwner, reset, resetInt, resetLoggedCount, setAutoFlush, setDescription, setEffectiveSeverity, setFooter, setFormatter, setHeader, setHeaderWritten, setLocalLogOwner, setLogName, setLogTypeAccessibility, setName, setSize, setStatus, setSuppressing, setVerInUse, size, status, write, writeInt, writeLogFooter, writeLogHeader
 
Methods inherited from class com.sap.tc.logging.ExceptionHandling
getException, getExceptions, handleException, handleException, resetException, throwException
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLog

public ConsoleLog()
Configures this console log.

See Also:
ConsoleLog(Formatter)

ConsoleLog

public ConsoleLog(Formatter formatter)
Configures this console log for writing with a custom formatter.

Parameters:
formatter - Formatter
See Also:
ConsoleLog()
Method Detail

closeInt

protected void closeInt()
                 throws IOException
Description copied from class: Log
Closes output of this log object. This method is meant for overriding the fashion in which the log is closed. You should not call this method from the outside because you would ignore common actions that have to take place for each close, for example writing the footer defined by the formatter.

Overrides:
closeInt in class StreamLog
Throws:
IOException

equals

public boolean equals(Object object)


Copyright 2006 SAP AG Complete Copyright Notice