|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.util.LogUtil
public class LogUtil
This class provides helper methods for logging messages. It uses standard J2SE logging. However, using these API's is abstracts this away from our code in case we want to go back to Apache commons logging or some other logging API in the future.
The logging levels follow the J2SE log level names, they are as follows:
Field Summary | |
---|---|
static java.lang.String |
BUNDLE_NAME
This is the bundle name for the ResourceBundle that
contains all the message strings. |
static java.lang.String |
DEFAULT_LOG_KEY
This is the default log key. |
static java.lang.String |
DEFAULT_LOGGER_NAME
This is the default logger name. |
static java.lang.String |
KEY_NOT_FOUND_KEY
This key is used when the requested key is not found to inform the developer they forgot to add a key. |
Constructor Summary | |
---|---|
LogUtil()
|
Method Summary | |
---|---|
static void |
config(java.lang.Object loggerId,
java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
config(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
config(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
config(java.lang.Object loggerId,
java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static void |
config(java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
config(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
config(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
config(java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static boolean |
configEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
configEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
fine(java.lang.Object loggerId,
java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
fine(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
fine(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
fine(java.lang.Object loggerId,
java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static void |
fine(java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
fine(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
fine(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
fine(java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a message. |
static boolean |
fineEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
fineEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
finer(java.lang.Object loggerId,
java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
finer(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
finer(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
finer(java.lang.Object loggerId,
java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static void |
finer(java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
finer(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
finer(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
finer(java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static boolean |
finerEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
finerEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
finest(java.lang.Object loggerId,
java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
finest(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
finest(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
finest(java.lang.Object loggerId,
java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static void |
finest(java.lang.String msg)
Logging method to log a simple localized or non-localized message. |
static void |
finest(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
finest(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
finest(java.lang.String msg,
java.lang.Throwable ex)
Logging method to log a Throwable with a
message. |
static boolean |
finestEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
finestEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
info(java.lang.Object loggerId,
java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
info(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
info(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
info(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static void |
info(java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
info(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
info(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
info(java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static boolean |
infoEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
infoEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
severe(java.lang.Object loggerId,
java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
severe(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
severe(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
severe(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static void |
severe(java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
severe(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
severe(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
severe(java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static boolean |
severeEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
severeEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
static void |
warning(java.lang.Object loggerId,
java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
warning(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger. |
static void |
warning(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger. |
static void |
warning(java.lang.Object loggerId,
java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static void |
warning(java.lang.String msgId)
Logging method to log a simple localized message. |
static void |
warning(java.lang.String msgId,
java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. |
static void |
warning(java.lang.String msgId,
java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. |
static void |
warning(java.lang.String msgId,
java.lang.Throwable ex)
Logging method to log a Throwable with a localized
message. |
static boolean |
warningEnabled()
Method to check if this log level is enabled for the default logger. |
static boolean |
warningEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUNDLE_NAME
This is the bundle name for the ResourceBundle
that
contains all the message strings.
public static final java.lang.String DEFAULT_LOG_KEY
This is the default log key.
public static final java.lang.String DEFAULT_LOGGER_NAME
This is the default logger name.
public static final java.lang.String KEY_NOT_FOUND_KEY
This key is used when the requested key is not found to inform the developer they forgot to add a key.
Constructor Detail |
---|
public LogUtil()
Method Detail |
---|
public static boolean finestEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean finestEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void finest(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void finest(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void finest(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void finest(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void finest(java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg.
msg
- The message (or ResourceBundle
key).public static void finest(java.lang.Object loggerId, java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg. The
specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message (or ResourceBundle
key).public static void finest(java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message.
msg
- The message.ex
- The Throwable
to log.public static void finest(java.lang.Object loggerId, java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message.ex
- The Throwable
to log.public static boolean finerEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean finerEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void finer(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void finer(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void finer(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void finer(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void finer(java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg.
msg
- The message (or ResourceBundle
key).public static void finer(java.lang.Object loggerId, java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg. The
specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message (or ResourceBundle
key).public static void finer(java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message.
msg
- The message.ex
- The Throwable
to log.public static void finer(java.lang.Object loggerId, java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message.ex
- The Throwable
to log.public static boolean fineEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean fineEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void fine(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void fine(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void fine(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void fine(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void fine(java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg.
msg
- The message (or ResourceBundle
key).public static void fine(java.lang.Object loggerId, java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg. The
specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message (or ResourceBundle
key).public static void fine(java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a message.
msg
- The message.ex
- The Throwable
to log.public static void fine(java.lang.Object loggerId, java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message.ex
- The Throwable
to log.public static boolean configEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean configEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void config(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void config(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void config(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void config(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void config(java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg.
msg
- The message (or ResourceBundle
key).public static void config(java.lang.Object loggerId, java.lang.String msg)
Logging method to log a simple localized or non-localized message.
This method will first attempt to find msg
in the
properties file, if not found it will print the given msg. The
specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message (or ResourceBundle
key).public static void config(java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message.
msg
- The message.ex
- The Throwable
to log.public static void config(java.lang.Object loggerId, java.lang.String msg, java.lang.Throwable ex)
Logging method to log a Throwable
with a
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msg
- The message.ex
- The Throwable
to log.public static boolean infoEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean infoEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void info(java.lang.String msgId)
Logging method to log a simple localized message. The default Logger will be used.
msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void info(java.lang.Object loggerId, java.lang.String msgId)
Logging method to log a simple localized message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void info(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void info(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void info(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void info(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void info(java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message.
msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
public static void info(java.lang.Object loggerId, java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
public static boolean warningEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean warningEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void warning(java.lang.String msgId)
Logging method to log a simple localized message. The default Logger will be used.
msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void warning(java.lang.Object loggerId, java.lang.String msgId)
Logging method to log a simple localized message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void warning(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void warning(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void warning(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void warning(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void warning(java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message.
msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
public static void warning(java.lang.Object loggerId, java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
public static boolean severeEnabled()
Method to check if this log level is enabled for the default logger.
public static boolean severeEnabled(java.lang.Object loggerId)
Method to check if this log level is enabled for the given logger.
loggerId
- The logger to check. This may be specified as a
String or Class Object.
public static void severe(java.lang.String msgId)
Logging method to log a simple localized message. The default Logger will be used.
msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void severe(java.lang.Object loggerId, java.lang.String msgId)
Logging method to log a simple localized message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.BUNDLE_NAME
public static void severe(java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key and a single substitution parameter. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void severe(java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key and zero or more substitution parameters. It will use the default Logger.
msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void severe(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object param)
Logging method supporting a localized message key, a single substitution parameter, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.param
- Value to substitute into the message.BUNDLE_NAME
public static void severe(java.lang.Object loggerId, java.lang.String msgId, java.lang.Object[] params)
Logging method supporting a localized message key, zero or more substitution parameters, and the ability to specify the Logger.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.params
- Value(s) to substitute into the message.BUNDLE_NAME
public static void severe(java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message.
msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
public static void severe(java.lang.Object loggerId, java.lang.String msgId, java.lang.Throwable ex)
Logging method to log a Throwable
with a localized
message. The specified Logger will be used.
loggerId
- The logger to use. This may be specified as a
String or Class Object.msgId
- The ResourceBundle
key used to lookup
the message.ex
- The Throwable
to log.BUNDLE_NAME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |