|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Method Summary | |
void |
addFilter(Filter filter)
Adds another filter that controls writing of messages via this log. |
boolean |
beLogged(int severity)
Checks whether a message with the specified severity would be written via this log. |
void |
close()
Closes output of this log object. |
void |
flush()
Flushes buffered records in this log object. |
int |
getEffectiveSeverity()
Gets the current effective severity of this log. |
java.lang.String |
getEncoding()
Gets the canonical name of the character encoding that is used for this log. |
java.util.Collection |
getFilters()
Gets the filters that control writing of messages via this log. |
java.lang.String |
getFooter()
Sets the footer text of this log. |
Formatter |
getFormatter()
Gets the formatter that dictates the format of log records in this log. |
java.lang.String |
getHeader()
Gets the header text of this log. |
int |
getLogTypeAccessibility()
Gets the current accessibility type of this log. |
int |
getNumberOfLogRecordsWritten()
This method returns the number that indicates how many LogRecords have been written so far. |
boolean |
isAutoFlush()
Checks whether this log flushes its output stream after each log message. |
boolean |
isClosed()
Check is this log closed. |
boolean |
isOpened()
Check is this log opened. |
void |
open()
Open output of this log object. |
void |
removeFilter(Filter filter)
Removes a filter so that it no longer controls writing of messages via this log. |
void |
removeFilters()
Removes all filters associated with this log. |
void |
setAutoFlush(boolean autoFlush)
Configures this log to flush the output stream after each log message. |
void |
setEffectiveSeverity(int severity)
Sets the effective severity of this log. |
void |
setEncoding(java.lang.String enc)
Sets the named character encoding to be used for this log. |
void |
setFormatter(Formatter formatter)
Sets the formatter that dictates the format of log records in this log. |
void |
setLogTypeAccessibility(int value)
Sets the effective severity of this log. |
int |
status()
Status of this log object. |
| Methods inherited from interface com.sap.tc.logging.interfaces.IObjectInfo |
getDescription, getName, getVerInUse |
| Method Detail |
public Formatter getFormatter()
setFormatter(Formatter)public void setFormatter(Formatter formatter)
getFormatter()public void setEffectiveSeverity(int severity)
severity - New effective severitypublic int getEffectiveSeverity()
public java.lang.String getHeader()
#setHeader(java.lang.String)public java.lang.String getFooter()
#setHeader(java.lang.String)public java.lang.String getEncoding()
setEncoding(java.lang.String)public void setEncoding(java.lang.String enc)
enc - Name of character encodinggetEncoding()public int getLogTypeAccessibility()
public void setLogTypeAccessibility(int value)
severity - New effective severitypublic int getNumberOfLogRecordsWritten()
public boolean beLogged(int severity)
false the message is not going to be written
but not vice versa. To this end, the method checks whether the specified
severity is equal to or higher than the effective severity of the log. It
does not take into account filters associated with the log.severity - Severity of message to be writtenpublic java.util.Collection getFilters()
public void addFilter(Filter filter)
filter - New filterpublic void removeFilter(Filter filter)
filter - Filter to be removedpublic void removeFilters()
public void flush()
public boolean isAutoFlush()
true if and only if this log flushes its output stream
after each log messagesetAutoFlush(boolean)public void setAutoFlush(boolean autoFlush)
autoFlush - isAutoFlush()public void close()
public boolean isClosed()
public void open()
public boolean isOpened()
public int status()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||