org.sapia.ubik.util
Interface Debug

All Known Implementing Classes:
NullDebug, StdoutDebug

public interface Debug

This interface defines basic debugging behavior.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2005 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 boolean on()
           
 void on(boolean on)
           
 java.io.PrintStream out()
           
 void out(java.lang.Class caller, java.lang.String msg)
          Outputs the given message, originating from an instance of the given class.
 void out(java.lang.Class caller, java.lang.String msg, java.lang.Throwable err)
          Outputs the given message and error, originating from an instance of the given class.
 

Method Detail

out

void out(java.lang.Class caller,
         java.lang.String msg)
Outputs the given message, originating from an instance of the given class.

Parameters:
caller - the Class from which the call is made.
msg - the message to output.

out

void out(java.lang.Class caller,
         java.lang.String msg,
         java.lang.Throwable err)
Outputs the given message and error, originating from an instance of the given class.

Parameters:
caller - the Class from which the call is made.
msg - the message to output.
err - a Throwable.

out

java.io.PrintStream out()
Returns:
the PrintStream this is used to perform the output.

on

boolean on()
Returns:
true if debugging is on.

on

void on(boolean on)
Parameters:
on - true if debugging should be turned on, false otherwise.


Copyright © 2010 Sapia OSS. All Rights Reserved.