org.jdiseq.util
Class Log

java.lang.Object
  extended byorg.jdiseq.util.Log

public class Log
extends java.lang.Object

Log class wrapping the logging mechanism used by jDiSeq. Uses delegation pattern.

Since:
1.0
Version:
$Id: Log.java,v 1.6 2003/07/22 17:58:11 trondandersen Exp $
Author:
Trond Andersen

Method Summary
 void config(java.lang.String message)
          Logs a configuration setting.
 void entering(java.lang.String sourceClass, java.lang.String sourceMethod)
          Logs that a thread is entering a method.
 void exiting(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object result)
          Logs that a thread is exiting a method.
static Log getLog()
          Returns the log instance.
 void info(java.lang.String message)
          Logs an information message.
 void severe(java.lang.String message)
          Logs a severe error situation.
 void throwing(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Throwable throwable)
          Logs that the program throws an exception.
 void warn(java.lang.String message)
          Logs a warning message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLog

public static Log getLog()
Returns the log instance.

Returns:
log instance

severe

public void severe(java.lang.String message)
Logs a severe error situation.

Parameters:
message - to be logged

info

public void info(java.lang.String message)
Logs an information message.

Parameters:
message - information to be logged

warn

public void warn(java.lang.String message)
Logs a warning message.

Parameters:
message - warning to be logged

throwing

public void throwing(java.lang.String sourceClass,
                     java.lang.String sourceMethod,
                     java.lang.Throwable throwable)
Logs that the program throws an exception.

Parameters:
sourceClass - class which creates the exception
sourceMethod - method which creates the exception
throwable - the exception being thrown

config

public void config(java.lang.String message)
Logs a configuration setting.

Parameters:
message - configuration setting being set

entering

public void entering(java.lang.String sourceClass,
                     java.lang.String sourceMethod)
Logs that a thread is entering a method.

Parameters:
sourceClass - class which is entered
sourceMethod - method which is entered

exiting

public void exiting(java.lang.String sourceClass,
                    java.lang.String sourceMethod,
                    java.lang.Object result)
Logs that a thread is exiting a method.

Parameters:
sourceClass - class which is being exited
sourceMethod - method which is being exited
result - returned to the caller


Copyright © 2003 SourceForge.net. All Rights Reserved.