com.ibm.websphere.batch
Class BatchLogger

java.lang.Object
  extended by com.ibm.websphere.batch.BatchLogger

public class BatchLogger
extends java.lang.Object

This api enables a Batch Step EJB to log a message to the Job log at runtime.


Constructor Summary
BatchLogger()
           
 
Method Summary
 void log(java.lang.String jobid, java.lang.String message)
          This method is called by a Batch Step EJB to log a message to the Batch Job Log Message stream.
 void logToFile(java.lang.String jobid, java.lang.String message)
          This method is called by a Batch Step EJB to log a message to the Batch Job Log File.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchLogger

public BatchLogger()
Method Detail

log

public void log(java.lang.String jobid,
                java.lang.String message)
This method is called by a Batch Step EJB to log a message to the Batch Job Log Message stream.

Parameters:
jobid - - The ID of the job associated with the Batch Step EJB.
message - - The message to be logged to the Batch Job Log Message stream.

logToFile

public void logToFile(java.lang.String jobid,
                      java.lang.String message)
This method is called by a Batch Step EJB to log a message to the Batch Job Log File.

Parameters:
jobid - - The ID of the job associated with the Batch Step EJB.
message - - The message to be logged to the Batch Job Log File.