com.telelogic.cs.api
Class ScriptLogger

java.lang.Object
  extended by com.telelogic.cs.api.ScriptLogger

public class ScriptLogger
extends java.lang.Object

Allows scripts to write to the event.log. Passed as the BSF log variable.


Constructor Summary
ScriptLogger()
           
 
Method Summary
 void debug(java.lang.Object message)
          Print a debug message to the event.log file.
 void debug(java.lang.Object message, java.lang.Throwable throwable)
          Print a debug message to the event.log file with a stack trace.
 void error(java.lang.Object message)
          Print an error message to the event.log file.
 void error(java.lang.Object message, java.lang.Throwable throwable)
          Print an error message to the event.log file with a stack trace.
 void info(java.lang.Object message)
          Print an informational message to the event.log file.
 void info(java.lang.Object message, java.lang.Throwable throwable)
          Print an informational message to the event.log file with a stack trace.
 void logMessage(java.lang.String message)
          Logs an informational message.
 void logMessage(java.lang.Throwable throwable)
          Logs a stack trace for an exception.
 void warn(java.lang.Object message)
          Print a warning message to the event.log file.
 void warn(java.lang.Object message, java.lang.Throwable throwable)
          Print a warning message to the event.log file with a stack trace.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptLogger

public ScriptLogger()
Method Detail

logMessage

public void logMessage(java.lang.String message)
Logs an informational message.

Parameters:
message - the message to log.

logMessage

public void logMessage(java.lang.Throwable throwable)
Logs a stack trace for an exception.

Parameters:
throwable - the exception to print.

info

public void info(java.lang.Object message)
Print an informational message to the event.log file.

Parameters:
message - the message to print.

info

public void info(java.lang.Object message,
                 java.lang.Throwable throwable)
Print an informational message to the event.log file with a stack trace.

Parameters:
message - the message to print.
throwable - the exception to print.

warn

public void warn(java.lang.Object message)
Print a warning message to the event.log file.

Parameters:
message - the message to print.

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable throwable)
Print a warning message to the event.log file with a stack trace.

Parameters:
message - the message to print.
throwable - the exception to print.

debug

public void debug(java.lang.Object message)
Print a debug message to the event.log file.

Parameters:
message - the message to print.

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable throwable)
Print a debug message to the event.log file with a stack trace.

Parameters:
message - the message to print.
throwable - the exception to print.

error

public void error(java.lang.Object message)
Print an error message to the event.log file.

Parameters:
message - the message to print.

error

public void error(java.lang.Object message,
                  java.lang.Throwable throwable)
Print an error message to the event.log file with a stack trace.

Parameters:
message - the message to print.
throwable - the exception to print.


© Copyright IBM Corporation 2000, 2009
US Government Users Restricted Rights--Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Notices