com.sap.tc.logging

Class ConsoleLog

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

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)
           
static boolean isEnable()
           
static void setEnable(boolean enable)
           
 
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

isEnable

public static boolean isEnable()

setEnable

public static void setEnable(boolean enable)

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 - Exception from closing the destination

equals

public boolean equals(Object object)
Overrides:
equals in class Object
Access Rights

This class can be accessed from:


SC DC
[sap.com] FRAMEWORK [sap.com] tc/ddic/ddicruntime
[sap.com] ENGINEAPI [sap.com] tc/logging
[sap.com] ENGFACADE [sap.com] tc/bl/logging/api
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.lib
[sap.com] BRMS-FACADE [sap.com] tc/brms/facade


Copyright 2010 SAP AG Complete Copyright Notice