All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.apache.jserv.JServDebug

java.lang.Object
   |
   +----org.apache.jserv.JServDebug

public final class JServDebug
extends Object
implements JServDebug. DebugConstants
Class that implements the debugging policy for the JServ module.

Version:
$Revision: 1.2 $
Author:
Francis J. Lacoste

Constructor Index

 o JServDebug()

Method Index

 o setTracing(int)
Set the tracing global policy.
 o setTracing(int, boolean)
Set the tracing for a module.
 o trace(String, int)
Log a message to stderr, if the tracing is on for the following module.
 o trace(Throwable)
Trace an exception if exception tracing is turn on.

Constructors

 o JServDebug
 public JServDebug()

Methods

 o trace
 public static void trace(String msg,
                          int module)
Log a message to stderr, if the tracing is on for the following module.

Parameters:
msg - The message to log.
module - The module in which this message should be log.
 o trace
 public static void trace(Throwable t)
Trace an exception if exception tracing is turn on.

 o setTracing
 public static void setTracing(int policy)
Set the tracing global policy. This should the addition of all the tracing constants that should be turn on.

 o setTracing
 public static void setTracing(int module,
                               boolean state)
Set the tracing for a module.


All Packages  Class Hierarchy  This Package  Previous  Next  Index