com.sap.tc.logging.interfaces
Interface IBaseLog
- All Superinterfaces:
- Cloneable, IObjectInfo
- All Known Subinterfaces:
- IReadLog
- All Known Implementing Classes:
- BaseLog, ReadLog
- public interface IBaseLog
- extends IObjectInfo, Cloneable
|
Method Summary |
void |
addFilter(IFilter filter)
Adds another filter that controls messages flow via this log.
|
void |
close()
Closes this log object. |
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. |
Collection |
getFilters()
Gets the filters that control messages flow via this log. |
String |
getFooter()
Sets the footer text of this log. |
Formatter |
getFormatter()
Gets the formatter that dictates the format of log records in this log. |
String |
getHeader()
Gets the header text of this log. |
int |
getMode()
Get current working mode |
String |
getPattern()
Gets the name pattern of this file log. |
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(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(String value)
Sets the name pattern of this log. |
void |
setSource(String value)
Sets the source name of this log.
|
int |
status()
Status of this log object. |
getPattern
public String getPattern()
- Gets the name pattern of this file log.
- Returns:
- Name pattern
- See Also:
setPattern(java.lang.String)
setPattern
public void setPattern(String value)
- Sets the name pattern of this log.
getSource
public String getSource()
- Gets the source name of this file log.
- Returns:
- Source name
- See Also:
setSource(java.lang.String)
setSource
public void setSource(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 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 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 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(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 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.
- Throws:
CloseException
open
public void open()
throws OpenException
- Open this log object.
- Throws:
OpenException
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.
Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.