com.sap.tc.logging
Class ConsoleLog
java.lang.Object
com.sap.tc.logging.ExceptionHandling
com.sap.tc.logging.Log
com.sap.tc.logging.StreamLog
com.sap.tc.logging.ConsoleLog
- All Implemented Interfaces:
- ILog, IObjectInfo, Cloneable
public class ConsoleLog
- extends StreamLog
Writes log records to System.err.
| 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. |
| 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 |
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()
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
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