oemware.core.util
Class LogUtils

java.lang.Object
  extended by oemware.core.util.LogUtils

public final class LogUtils
extends java.lang.Object

The log utils.

Version:
$Id: LogUtils.java 13 2008-06-15 19:43:04Z oemware $

Constructor Summary
LogUtils()
           
 
Method Summary
static org.apache.commons.logging.Log getLog(java.lang.Object pObject)
          Returns the log for the object.
static void logError(org.apache.commons.logging.Log pLogger, java.lang.String pComponentId, java.lang.String pMessage)
          Log the pipe excepiton.
static void logError(org.apache.commons.logging.Log pLogger, java.lang.String pComponentId, java.lang.String pMessage, java.lang.Throwable pThrowable)
          Log the named pipe excepiton.
static void logError(org.apache.commons.logging.Log pLogger, java.lang.String pComponentId, java.lang.Throwable pThrowable)
          Log the named pipe excepiton.
static void logWarn(org.apache.commons.logging.Log pLogger, java.lang.String pComponentId, java.lang.String pMessage)
          Log the warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtils

public LogUtils()
Method Detail

getLog

public static final org.apache.commons.logging.Log getLog(java.lang.Object pObject)
Returns the log for the object.

Parameters:
pObject - The value.
Returns:
The log.

logWarn

public static final void logWarn(org.apache.commons.logging.Log pLogger,
                                 java.lang.String pComponentId,
                                 java.lang.String pMessage)
Log the warning. This is a convienance method.

Parameters:
pLogger - The log.
pComponentId - The component id.
pMessage - The message.

logError

public static final void logError(org.apache.commons.logging.Log pLogger,
                                  java.lang.String pComponentId,
                                  java.lang.String pMessage)
Log the pipe excepiton. This is a convienance method.

Parameters:
pLogger - The log.
pComponentId - The component id.
pMessage - The message.

logError

public static final void logError(org.apache.commons.logging.Log pLogger,
                                  java.lang.String pComponentId,
                                  java.lang.Throwable pThrowable)
Log the named pipe excepiton. This is a convienance method.

Parameters:
pLogger - The log.
pComponentId - The component id.
pThrowable - The exception.

logError

public static final void logError(org.apache.commons.logging.Log pLogger,
                                  java.lang.String pComponentId,
                                  java.lang.String pMessage,
                                  java.lang.Throwable pThrowable)
Log the named pipe excepiton. This is a convienance method.

Parameters:
pLogger - The log.
pComponentId - The component id.
pThrowable - The exception.
pMessage - The message.


Copyright © 2008 Deft Labs - Released under LGPL, Version 3.0