com.sap.tc.logging.interfaces
Interface IBaseLog

All Superinterfaces:
java.lang.Cloneable, IObjectInfo
All Known Subinterfaces:
IReadLog
All Known Implementing Classes:
BaseLog

public interface IBaseLog
extends IObjectInfo, java.lang.Cloneable


Method Summary
 void addFilter(IFilter filter)
          Adds another filter that controls messages flow via this log.
 void close()
          Closes this log object.
 java.lang.String getEncoding()
          Gets the canonical name of the character encoding that is used for this log.
 IFilter getFilter(int index)
          Gets the filter that control messages flow via this log.
 java.util.Collection getFilters()
          Gets the filters that control messages flow 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 getMode()
          Get current working mode
 java.lang.String getPattern()
          Gets the name pattern of this file log.
 java.lang.String getSource()
          Gets the source name of this file log.
 boolean isClosed()
          Check is this log closed.
 boolean isOpened()
          Check is this log opened.
 void open()
          Open this log object.
 void removeFilter(IFilter filter)
          Removes a filter so that it no longer controls messages flow via this log.
 void removeFilters()
          Removes all filters associated with 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 setMode(int mode)
          Set current working mode.
 void setPattern(java.lang.String value)
          Sets the name pattern of this log.
 void setSource(java.lang.String value)
          Sets the source name 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

getPattern

public java.lang.String getPattern()
Gets the name pattern of this file log.
Returns:
Name pattern
See Also:
setPattern(java.lang.String)

setPattern

public void setPattern(java.lang.String value)
Sets the name pattern of this log.

getSource

public java.lang.String getSource()
Gets the source name of this file log.
Returns:
Source name
See Also:
setSource(java.lang.String)

setSource

public void setSource(java.lang.String value)
Sets the source name of this log. Source name represent a source where messages will be written, or from where messages will be read. Full source name will be built based on given pattern.
See Also:
setPattern(java.lang.String)

getFormatter

public Formatter getFormatter()
Gets the formatter that dictates the format of log records in this log.
Returns:
Formatter
See Also:
setFormatter(Formatter)

setFormatter

public void setFormatter(Formatter formatter)
Sets the formatter that dictates the format of log records in this log.
Parameters:
formatter - - Formatter instance. if formatter == null, default ListFormatter() will be created!
Returns:
Formatter
See Also:
getFormatter()

getHeader

public java.lang.String getHeader()
Gets the header text of this log.
Returns:
Text which represent header of this log.
See Also:
#setHeader(java.lang.String)

getFooter

public java.lang.String getFooter()
Sets the footer text of this log.
Returns:
Text which represent footer of this log.
See Also:
#setHeader(java.lang.String)

getEncoding

public java.lang.String getEncoding()
Gets the canonical name of the character encoding that is used for this log. If no character encoding is set the default character encoding of the platform is used.
Returns:
Name of character encoding. Can be null.
See Also:
setEncoding(java.lang.String)

setEncoding

public void setEncoding(java.lang.String enc)
Sets the named character encoding to be used for this log. If no character encoding is set the default character encoding is used.
Parameters:
enc - Name of character encoding
See Also:
getEncoding()

addFilter

public void addFilter(IFilter filter)
Adds another filter that controls messages flow via this log. The results of all filters for a given message are logically anded to determine whether a message is to be processed.
Parameters:
filter - New filter

removeFilter

public void removeFilter(IFilter filter)
Removes a filter so that it no longer controls messages flow via this log.
Parameters:
filter - Filter to be removed

getFilter

public IFilter getFilter(int index)
Gets the filter that control messages flow via this log.
Returns:
Instance of IFilter stored on given position / index

getFilters

public java.util.Collection getFilters()
Gets the filters that control messages flow via this log.
Returns:
Unmodifiable collection of filters associated with this log

removeFilters

public void removeFilters()
Removes all filters associated with this log.

close

public void close()
           throws CloseException
Closes this log object.

open

public void open()
          throws OpenException
Open this log object.

isClosed

public boolean isClosed()
Check is this log closed.

isOpened

public boolean isOpened()
Check is this log opened.

status

public int status()
Status of this log object.

getMode

public int getMode()
Get current working mode

setMode

public void setMode(int mode)
Set current working mode.