com.novell.nds.dirxml.driver
Interface TraceInterface

All Known Implementing Classes:
com.novell.nds.dirxml.shimhost.PrintStreamTraceImpl

public interface TraceInterface

Interface describing the methods that the Trace class calls to output messages.


Method Summary
 int getLevel()
          Return the current trace level.
 void trace(int level, String message)
          Output a message string if the passed level is greater than or equal to the current trace level.
 void trace(int level, XmlDocument document)
          Serialize and output XML document if passed level is greater than or equal to the current trace level.
 

Method Detail

trace

public void trace(int level,
                  String message)
Output a message string if the passed level is greater than or equal to the current trace level.

Parameters:
level - Trace level for message.
message - String to output.

trace

public void trace(int level,
                  XmlDocument document)
Serialize and output XML document if passed level is greater than or equal to the current trace level.

Parameters:
level - Trace level for document.
document - The XML document to output

getLevel

public int getLevel()
Return the current trace level.

Returns:
Current trace level.