fdda.utils
Class Logging

java.lang.Object
  |
  +--fdda.utils.Logging

public final class Logging
extends Object

Provides some small help functions for easy logging.

Author:
Jörg Rüdenauer

Method Summary
static void errorCaught(Error e)
          Logs the event that an error has been caught.
static void exceptionCaught(Exception e)
          Logs the event that an exception has been caught.
static Logger getPackageLogger(Class aClass)
          Returns a logger for a certain package (determined from a class).
static void initialize()
          Initializes the logging component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static void initialize()
Initializes the logging component


exceptionCaught

public static void exceptionCaught(Exception e)
Logs the event that an exception has been caught. Should be used if no further exception is thrown (neither the same nor an other, perhaps encapsulating exception) for debugging purposes, because the exception event is not necessarily conveyed to the user.
Logs the exact place where the exception was caught and the localized message of the exception with the logger level 'fine' on the 'global' logger.

Parameters:
e - the caught Exception, must not be null

errorCaught

public static void errorCaught(Error e)
Logs the event that an error has been caught. Should be used if no further exception / error is thrown (neither the same nor an other, perhaps encapsulating exception) for debugging purposes, because the exception event is not necessarily conveyed to the user.
Logs the exact place where the error was caught and the localized message of the error with the logger level 'fine' on the 'global' logger.

Parameters:
e - the caught Error, must not be null

getPackageLogger

public static Logger getPackageLogger(Class aClass)
Returns a logger for a certain package (determined from a class). Packages should roughly be equivalent to components, so they should each use different loggers. For each package, always the same logger is returned.

Parameters:
aClass - a class in the package, must not be null
Returns:
the logger for that package


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.