com.adobe.dct.exception
Class MessageLogger

java.lang.Object
  extended by com.adobe.dct.exception.MessageLogger

public class MessageLogger
extends Object

Class to get a pre-defined message from a 'exceptions.properties' file in this library


Method Summary
static String getString(String key)
          Retrieve message string with default locale (en_EN)
static String getString(String key, String[] args)
          Retrieve message with default locale (en_EN)
static void logError(Class className, String key, String[] args, Throwable cause)
          Function to log messages
static void logError(Class className, String key, Throwable cause)
          Fucntion to log messages
static void logMessage(Class className, LogLevels severity, String key)
          Fucntion to log messages
static void logMessage(Class className, LogLevels severity, String key, String[] args)
          Function to log messages
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static String getString(String key)
Retrieve message string with default locale (en_EN)

Parameters:
key - key to find message
Returns:
the translated resource string

getString

public static String getString(String key,
                               String[] args)
Retrieve message with default locale (en_EN)

Parameters:
key - key to find message
args - arguments to be merged into the resource string
Returns:
the translated resource string

logMessage

public static void logMessage(Class className,
                              LogLevels severity,
                              String key,
                              String[] args)
Function to log messages

Parameters:
className - class to be used in log message
severity - log level
key - key to find the message string
args - arguments to be merged in resource string

logMessage

public static void logMessage(Class className,
                              LogLevels severity,
                              String key)
Fucntion to log messages

Parameters:
className - class to be used in log message
severity - log level
key - key to find the message string

logError

public static void logError(Class className,
                            String key,
                            Throwable cause)
Fucntion to log messages

Parameters:
className - class to be used in log message
key - key to find the message string
cause - cause throwable

logError

public static void logError(Class className,
                            String key,
                            String[] args,
                            Throwable cause)
Function to log messages

Parameters:
className - class to be used in log message
key - key to find the message string
cause - cause throwable


[an error occurred while processing this directive] [an error occurred while processing this directive]