org.jwaf.core
Class LogDelegate

java.lang.Object
  |
  +--org.jwaf.core.LogDelegate

public class LogDelegate
extends java.lang.Object

A delegate for all application logging


Method Summary
static void action(UserAction action)
          Log a user action
static void debug(java.lang.Object message)
          Log a debug mode message
static void error(java.lang.Object message)
          Log an error message
static void exception(java.lang.Exception ex)
          Log an exception message
 org.apache.log4j.Category getDevLog()
          Get the logger instance
static LogDelegate getInstance()
          Get singleton instance of LogDelegate
static void info(java.lang.Object message)
          Log an information message
static void log(java.lang.Object message)
          Log a generic (normal priortiy) message
static void mark(java.lang.Class classType)
          Demark a class with a title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogDelegate getInstance()
Get singleton instance of LogDelegate
Returns:
Returns instance of singleton LogDelegate

info

public static void info(java.lang.Object message)
Log an information message
Parameters:
message - Message to display

debug

public static void debug(java.lang.Object message)
Log a debug mode message
Parameters:
message - Message to display

error

public static void error(java.lang.Object message)
Log an error message
Parameters:
message - Message to display

exception

public static void exception(java.lang.Exception ex)
Log an exception message
Parameters:
ex - An exception

mark

public static void mark(java.lang.Class classType)
Demark a class with a title
Parameters:
classType - Class type of the class to log

log

public static void log(java.lang.Object message)
Log a generic (normal priortiy) message
Parameters:
message - Message to display

action

public static void action(UserAction action)
Log a user action
Parameters:
action - The called action

getDevLog

public org.apache.log4j.Category getDevLog()
Get the logger instance
Returns:
Logger implementation