public class LogUtil extends Object
Calls to this class should still be wrapped with the appropriate log level checks:
if (logger.isDebugEnabled()) { LogUtil.debug(logger, MSG_EXECUTING_STATEMENT, sql); }
I18NUtil
Constructor and Description |
---|
LogUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(org.apache.commons.logging.Log logger,
String messageKey,
Object... args)
Log an I18Nized message to DEBUG.
|
static void |
error(org.apache.commons.logging.Log logger,
String messageKey,
Object... args)
Log an I18Nized message to ERROR.
|
static void |
error(org.apache.commons.logging.Log logger,
Throwable e,
String messageKey,
Object... args)
Log an I18Nized message to ERROR with a given source error.
|
static void |
info(org.apache.commons.logging.Log logger,
String messageKey,
Object... args)
Log an I18Nized message to INFO.
|
static void |
warn(org.apache.commons.logging.Log logger,
String messageKey,
Object... args)
Log an I18Nized message to WARN.
|
public static final void debug(org.apache.commons.logging.Log logger, String messageKey, Object... args)
logger
- the logger to usemessageKey
- the message keyargs
- the required message argumentspublic static final void info(org.apache.commons.logging.Log logger, String messageKey, Object... args)
logger
- the logger to usemessageKey
- the message keyargs
- the required message argumentspublic static final void warn(org.apache.commons.logging.Log logger, String messageKey, Object... args)
logger
- the logger to usemessageKey
- the message keyargs
- the required message argumentspublic static final void error(org.apache.commons.logging.Log logger, String messageKey, Object... args)
logger
- the logger to usemessageKey
- the message keyargs
- the required message argumentspublic static final void error(org.apache.commons.logging.Log logger, Throwable e, String messageKey, Object... args)
logger
- the logger to usee
- the exception cause of the issuemessageKey
- the message keyargs
- the required message argumentsCopyright © 2005–2020 Alfresco Software. All rights reserved.