IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved

idebug
Class ServletLogOutput

java.lang.Object
  |
  +--idebug.DebugOutputBase
        |
        +--idebug.ServletLogOutput
All Implemented Interfaces:
java.lang.Cloneable, DebugOutput

public class ServletLogOutput
extends DebugOutputBase
implements DebugOutput, java.lang.Cloneable

The class used to send debugging messages from within Java servlets.

Version:
$Revision: 2146 $ $Date: 2005-02-13 16:54:27 +0000 (Sun, 13 Feb 2005) $
Author:
Joseph R. Kiniry

Fields inherited from class idebug.DebugOutputBase
debug
 
Constructor Summary
ServletLogOutput(Debug d)
           Construct a new ServletLogOutput object for debugging purposes.
ServletLogOutput(Debug d, javax.servlet.ServletContext s)
           Construct a new ServletLogOutput object.
 
Method Summary
 java.lang.Object clone()
           
 java.io.Writer getWriter()
           Returns a Writer for this output interface if one is available.
 void printMsg(int level, java.lang.String message)
           Print out the debugging message, no questions asked.
 void printMsg(java.lang.String message)
           Print out the debugging message, no questions asked.
 void printMsg(java.lang.String category, java.lang.String message)
           Print out the debugging message, no questions asked.
 
Methods inherited from class idebug.DebugOutputBase
isValidCategory, isValidLevel, print, print, print, print, println, println, println, println
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface idebug.DebugOutput
isValidCategory, isValidLevel, print, print, print, print, println, println, println, println
 

Constructor Detail

ServletLogOutput

public ServletLogOutput(Debug d)

Construct a new ServletLogOutput object for debugging purposes. A dummy ServletContext will be created and output will go to System.err.

Parameters:
d - the Debug class associated with this ServletLogOutput.

ServletLogOutput

public ServletLogOutput(Debug d,
                        javax.servlet.ServletContext s)

Construct a new ServletLogOutput object.

Parameters:
d - the Debug class associated with this ServletLogOutput.
s - the ServletContext associated with this instance of ServletLogOutput.
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

printMsg

public void printMsg(java.lang.String category,
                     java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
category - is the category of this message.
message - is the debugging message to print.

printMsg

public void printMsg(int level,
                     java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
level - The debugging level of this message.
message - The debugging message to print.

printMsg

public void printMsg(java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
message - The debugging message to print.

getWriter

public java.io.Writer getWriter()
Description copied from interface: DebugOutput

Returns a Writer for this output interface if one is available.

Specified by:
getWriter in interface DebugOutput
Overrides:
getWriter in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Returns:
a Writer for this output interface if one is available.
See Also:
Writer

IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved