org.infoglue.cms.util
Class CmsLogger

java.lang.Object
  |
  +--org.infoglue.cms.util.CmsLogger

public class CmsLogger
extends java.lang.Object

This class is the log-utility. It uses the built in Java 1.4.1 logger and is used to log on disk or wherever.

Author:
Mattias Bogeblad

Constructor Summary
CmsLogger()
           
 
Method Summary
static void initializeLogger()
          This method initializes the logging-functionality.
static void logInfo(java.lang.String info)
          This method logs a message as info.
static void logInfo(java.lang.String info, java.lang.Exception e)
          This method logs a message as info.
static void logSevere(java.lang.String severe)
          This method logs a message as servere.
static void logSevere(java.lang.String severe, java.lang.Exception e)
          This method logs a message as servere.
static void logWarning(java.lang.String warning)
          This method logs a message as warning.
static void logWarning(java.lang.String warning, java.lang.Exception e)
          This method logs a message as warning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsLogger

public CmsLogger()
Method Detail

initializeLogger

public static final void initializeLogger()
This method initializes the logging-functionality. There are a couple of parameters in the property-files that can be set to influence the behaviour. We can for example state if we want the console to visualize the loginfo.


logInfo

public static final void logInfo(java.lang.String info)
This method logs a message as info.


logWarning

public static void logWarning(java.lang.String warning)
This method logs a message as warning.


logSevere

public static void logSevere(java.lang.String severe)
This method logs a message as servere.


logInfo

public static void logInfo(java.lang.String info,
                           java.lang.Exception e)
This method logs a message as info.


logWarning

public static void logWarning(java.lang.String warning,
                              java.lang.Exception e)
This method logs a message as warning.


logSevere

public static void logSevere(java.lang.String severe,
                             java.lang.Exception e)
This method logs a message as servere.