|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.util.LogUtil
public class LogUtil
Utility class to assist with I18N of log messages.
Calls to this class should still be wrapped with the appropriate log level checks:
if (logger.isDebugEnabled())
{
LogUtil.debug(logger, MSG_EXECUTING_STATEMENT, sql);
}
org.alfresco.i18n.I18NUtil| Constructor Summary | |
|---|---|
LogUtil()
|
|
| Method Summary | |
|---|---|
static void |
debug(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
Log an I18Nized message to DEBUG. |
static void |
error(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
Log an I18Nized message to ERROR. |
static void |
error(org.apache.commons.logging.Log logger,
java.lang.Throwable e,
java.lang.String messageKey,
java.lang.Object[] args)
Log an I18Nized message to ERROR with a given source error. |
static void |
info(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
Log an I18Nized message to INFO. |
static void |
warn(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
Log an I18Nized message to WARN. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogUtil()
| Method Detail |
|---|
public static final void debug(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
logger - the logger to usemessageKey - the message keyargs - the required message arguments
public static final void info(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
logger - the logger to usemessageKey - the message keyargs - the required message arguments
public static final void warn(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
logger - the logger to usemessageKey - the message keyargs - the required message arguments
public static final void error(org.apache.commons.logging.Log logger,
java.lang.String messageKey,
java.lang.Object[] args)
logger - the logger to usemessageKey - the message keyargs - the required message arguments
public static final void error(org.apache.commons.logging.Log logger,
java.lang.Throwable e,
java.lang.String messageKey,
java.lang.Object[] args)
logger - the logger to usee - the exception cause of the issuemessageKey - the message keyargs - the required message arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||