org.safs.staf.service
Class ServiceDebugLog

java.lang.Object
  extended by org.safs.staf.service.ServiceDebugLog

public class ServiceDebugLog
extends java.lang.Object


Field Summary
static java.lang.String DEBUG_LOG_CUSTOM_LOGGING
           
static java.lang.String DEBUG_LOG_INPUT
           
static java.lang.String DEBUG_LOG_LOGGING
           
static java.lang.String DEBUG_LOG_MAPS
           
static java.lang.String DEBUG_LOG_VARIABLE
           
 
Constructor Summary
ServiceDebugLog()
           
ServiceDebugLog(java.lang.String serviceName, boolean debug)
           
 
Method Summary
 java.lang.String addServiceNameToMessage(java.lang.String message)
           
 void debugInit()
          Initializes debug log.
 void debugPrintln(java.lang.String msg)
          Prints a line to the debug log if debugging is enabled.
 void debugPrintln(java.lang.String msg, java.lang.Exception e)
          Prints a message and Exception to the debug log if debugging is enabled.
 void debugPrintln(java.lang.String msg, com.ibm.staf.STAFResult r)
          Prints a message and STAFResult to the debug log if debugging is enabled.
 void debugTerm()
          Closing debug log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_LOG_LOGGING

public static final java.lang.String DEBUG_LOG_LOGGING
See Also:
Constant Field Values

DEBUG_LOG_VARIABLE

public static final java.lang.String DEBUG_LOG_VARIABLE
See Also:
Constant Field Values

DEBUG_LOG_MAPS

public static final java.lang.String DEBUG_LOG_MAPS
See Also:
Constant Field Values

DEBUG_LOG_INPUT

public static final java.lang.String DEBUG_LOG_INPUT
See Also:
Constant Field Values

DEBUG_LOG_CUSTOM_LOGGING

public static final java.lang.String DEBUG_LOG_CUSTOM_LOGGING
See Also:
Constant Field Values
Constructor Detail

ServiceDebugLog

public ServiceDebugLog()

ServiceDebugLog

public ServiceDebugLog(java.lang.String serviceName,
                       boolean debug)
Method Detail

debugInit

public void debugInit()
Initializes debug log. Do not forget to call debugTerm().


debugPrintln

public void debugPrintln(java.lang.String msg)
Prints a line to the debug log if debugging is enabled.

Parameters:
msg - the message to print.

debugPrintln

public void debugPrintln(java.lang.String msg,
                         com.ibm.staf.STAFResult r)
Prints a message and STAFResult to the debug log if debugging is enabled.

Parameters:
msg - the message to print.
t - the STAFResult to print.

debugPrintln

public void debugPrintln(java.lang.String msg,
                         java.lang.Exception e)
Prints a message and Exception to the debug log if debugging is enabled.

Parameters:
msg - the message to print.
e - the Exception to print.

addServiceNameToMessage

public java.lang.String addServiceNameToMessage(java.lang.String message)

debugTerm

public void debugTerm()
Closing debug log. This should always be called finally.