|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.tc.logging.ExceptionHandling
com.sap.tc.logging.Log
com.sap.tc.logging.StreamLog
public class StreamLog
Writes log records to output streams.
| 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 | |
|---|---|
protected |
StreamLog()
|
protected |
StreamLog(Formatter formatter)
|
|
StreamLog(OutputStream stream)
Configures this stream log for writing to an output stream. |
|
StreamLog(OutputStream stream,
Formatter formatter)
Same as StreamLog(java.io.OutputStream)
but configures for writing with a custom formatter. |
|
StreamLog(OutputStream stream,
String enc)
Configures this stream log for writing to an output stream with a custom character encoding. |
|
StreamLog(OutputStream stream,
String enc,
Formatter formatter)
Same as StreamLog(java.io.OutputStream,
java.lang.String)
but configures for writing with a custom formatter and character encoding. |
protected |
StreamLog(String enc,
Formatter formatter)
|
| Method Summary | |
|---|---|
protected Object |
clone()
|
protected void |
closeInt()
Closes output of this log object. |
protected void |
flushInt()
Flushes buffered records in this log object. |
String |
getEncoding()
Gets the canonical name of the character encoding that is used for this log. |
protected OutputStream |
getOutputStream()
|
protected void |
openInt()
Open output of this log object. |
void |
setEncoding(String enc)
Sets the named character encoding to be used for this log. |
protected void |
writeInt(String s)
Writes a log message string to this log. |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StreamLog()
protected StreamLog(Formatter formatter)
protected StreamLog(String enc,
Formatter formatter)
public StreamLog(OutputStream stream)
stream - Output streamStreamLog(java.io.OutputStream,
java.lang.String)
public StreamLog(OutputStream stream,
Formatter formatter)
StreamLog(java.io.OutputStream)
but configures for writing with a custom formatter.
stream - Output streamformatter - FormatterStreamLog(java.io.OutputStream,
java.lang.String,
Formatter)
public StreamLog(OutputStream stream,
String enc)
throws UnsupportedEncodingException
stream - Output streamenc - Name of character encoding
UnsupportedEncodingExceptionStreamLog(java.io.OutputStream)
public StreamLog(OutputStream stream,
String enc,
Formatter formatter)
throws UnsupportedEncodingException
StreamLog(java.io.OutputStream,
java.lang.String)
but configures for writing with a custom formatter and character encoding.
stream - Output streamenc - Name of character encodingformatter - Formatter
UnsupportedEncodingException - Character encoding not supportedStreamLog(java.io.OutputStream,
Formatter)| Method Detail |
|---|
public String getEncoding()
getEncoding in interface ILoggetEncoding in class LogsetEncoding(java.lang.String)public void setEncoding(String enc)
#Log.close() method, then opened with #Log.open() method.
setEncoding in interface ILogsetEncoding in class Logenc - Name of character encodinggetEncoding()
protected Object clone()
throws CloneNotSupportedException
clone in class LogCloneNotSupportedExceptionprotected OutputStream getOutputStream()
protected void writeInt(String s)
throws Exception
Log
Writes a log message string to this log.
This method is meant as the standard way of implementing the fashion in
which a log message is written to its destination. Note that this method
is called inside a synchronized statement that locks this
log, in order to avoid deadlocks.
If you need access to the log record to be written you should override
Log.writeInt(java.lang.String). Note that, nevertheless, even in
this case it is usually necessary to reimplement this method.
writeInt in class LogIOException - Exception from writing messages to the destination
Exception
protected void flushInt()
throws IOException
Log
flushInt in class LogIOException - Exception from flushing records to the destination
protected void openInt()
throws IOException
Log
openInt in class LogIOException - Exception from opening the destination
protected void closeInt()
throws IOException
Log
closeInt in class LogIOException - Exception from closing the destination| Access Rights |
|---|
| 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
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||