org.sapia.ubik.util
Class StdoutDebug
java.lang.Object
org.sapia.ubik.util.StdoutDebug
- All Implemented Interfaces:
- Debug
public class StdoutDebug
- extends java.lang.Object
- implements Debug
A Debug implementation that logs to stdout.
- 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdoutDebug
public StdoutDebug()
out
public java.io.PrintStream out()
- Specified by:
out in interface Debug
- Returns:
- the
PrintStream this is used to perform the output. - See Also:
org.sapia.ubik.net.nio.util.Debug#out()
on
public boolean on()
- Specified by:
on in interface Debug
- Returns:
true if debugging is on.- See Also:
org.sapia.ubik.net.nio.util.Debug#on()
on
public void on(boolean on)
- Specified by:
on in interface Debug
- Parameters:
on - true if debugging should be turned on,
false otherwise.
out
public void out(java.lang.Class caller,
java.lang.String msg)
- Description copied from interface:
Debug
- Outputs the given message, originating from an instance of
the given class.
- Specified by:
out in interface Debug
- Parameters:
caller - the Class from which the call is made.msg - the message to output.- See Also:
org.sapia.ubik.net.nio.util.Debug#out(java.lang.Class, java.lang.String)
out
public void out(java.lang.Class caller,
java.lang.String msg,
java.lang.Throwable err)
- Description copied from interface:
Debug
- Outputs the given message and error, originating from an instance of
the given class.
- Specified by:
out in interface Debug
- Parameters:
caller - the Class from which the call is made.msg - the message to output.err - a Throwable.- See Also:
org.sapia.ubik.net.nio.util.Debug#out(java.lang.Class, java.lang.String, java.lang.Throwable)
Copyright © 2010 Sapia OSS. All Rights Reserved.