com.sun.rave.web.ui.util
Class LogUtil

java.lang.Object
  extended by com.sun.rave.web.ui.util.LogUtil

public class LogUtil
extends java.lang.Object

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

BUNDLE_NAME

public static final java.lang.String BUNDLE_NAME

This is the bundle name for the ResourceBundle that contains all the message strings.

See Also:
Constant Field Values

DEFAULT_LOG_KEY

public static final java.lang.String DEFAULT_LOG_KEY

This is the default log key.

See Also:
Constant Field Values

DEFAULT_LOGGER_NAME

public static final java.lang.String DEFAULT_LOGGER_NAME

This is the default logger name.

See Also:
Constant Field Values

KEY_NOT_FOUND_KEY

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.

See Also:
Constant Field Values
Constructor Detail

LogUtil

public LogUtil()
Method Detail

finestEnabled

public static boolean finestEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

finestEnabled

public static boolean finestEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

finest

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

finest

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

finest

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.

Parameters:
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.
See Also:
BUNDLE_NAME

finest

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.

Parameters:
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.
See Also:
BUNDLE_NAME

finest

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.

Parameters:
msg - The message (or ResourceBundle key).

finest

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message (or ResourceBundle key).

finest

public static void finest(java.lang.String msg,
                          java.lang.Throwable ex)

Logging method to log a Throwable with a message.

Parameters:
msg - The message.
ex - The Throwable to log.

finest

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message.
ex - The Throwable to log.

finerEnabled

public static boolean finerEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

finerEnabled

public static boolean finerEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

finer

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

finer

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

finer

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.

Parameters:
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.
See Also:
BUNDLE_NAME

finer

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.

Parameters:
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.
See Also:
BUNDLE_NAME

finer

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.

Parameters:
msg - The message (or ResourceBundle key).

finer

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message (or ResourceBundle key).

finer

public static void finer(java.lang.String msg,
                         java.lang.Throwable ex)

Logging method to log a Throwable with a message.

Parameters:
msg - The message.
ex - The Throwable to log.

finer

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message.
ex - The Throwable to log.

fineEnabled

public static boolean fineEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

fineEnabled

public static boolean fineEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

fine

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

fine

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

fine

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.

Parameters:
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.
See Also:
BUNDLE_NAME

fine

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.

Parameters:
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.
See Also:
BUNDLE_NAME

fine

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.

Parameters:
msg - The message (or ResourceBundle key).

fine

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message (or ResourceBundle key).

fine

public static void fine(java.lang.String msg,
                        java.lang.Throwable ex)

Logging method to log a Throwable with a message.

Parameters:
msg - The message.
ex - The Throwable to log.

fine

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message.
ex - The Throwable to log.

configEnabled

public static boolean configEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

configEnabled

public static boolean configEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

config

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

config

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

config

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.

Parameters:
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.
See Also:
BUNDLE_NAME

config

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.

Parameters:
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.
See Also:
BUNDLE_NAME

config

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.

Parameters:
msg - The message (or ResourceBundle key).

config

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message (or ResourceBundle key).

config

public static void config(java.lang.String msg,
                          java.lang.Throwable ex)

Logging method to log a Throwable with a message.

Parameters:
msg - The message.
ex - The Throwable to log.

config

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msg - The message.
ex - The Throwable to log.

infoEnabled

public static boolean infoEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

infoEnabled

public static boolean infoEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

info

public static void info(java.lang.String msgId)

Logging method to log a simple localized message. The default Logger will be used.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

info

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

info

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

info

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

info

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.

Parameters:
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.
See Also:
BUNDLE_NAME

info

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.

Parameters:
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.
See Also:
BUNDLE_NAME

info

public static void info(java.lang.String msgId,
                        java.lang.Throwable ex)

Logging method to log a Throwable with a localized message.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
ex - The Throwable to log.
See Also:
BUNDLE_NAME

info

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.

Parameters:
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.
See Also:
BUNDLE_NAME

warningEnabled

public static boolean warningEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

warningEnabled

public static boolean warningEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

warning

public static void warning(java.lang.String msgId)

Logging method to log a simple localized message. The default Logger will be used.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
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.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
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.
See Also:
BUNDLE_NAME

warning

public static void warning(java.lang.String msgId,
                           java.lang.Throwable ex)

Logging method to log a Throwable with a localized message.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
ex - The Throwable to log.
See Also:
BUNDLE_NAME

warning

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.

Parameters:
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.
See Also:
BUNDLE_NAME

severeEnabled

public static boolean severeEnabled()

Method to check if this log level is enabled for the default logger.

Returns:
true if the log level is enabled, false otherwise.

severeEnabled

public static boolean severeEnabled(java.lang.Object loggerId)

Method to check if this log level is enabled for the given logger.

Parameters:
loggerId - The logger to check. This may be specified as a String or Class Object.
Returns:
true if the log level is enabled, false otherwise.

severe

public static void severe(java.lang.String msgId)

Logging method to log a simple localized message. The default Logger will be used.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
loggerId - The logger to use. This may be specified as a String or Class Object.
msgId - The ResourceBundle key used to lookup the message.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
param - Value to substitute into the message.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
params - Value(s) to substitute into the message.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
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.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
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.
See Also:
BUNDLE_NAME

severe

public static void severe(java.lang.String msgId,
                          java.lang.Throwable ex)

Logging method to log a Throwable with a localized message.

Parameters:
msgId - The ResourceBundle key used to lookup the message.
ex - The Throwable to log.
See Also:
BUNDLE_NAME

severe

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.

Parameters:
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.
See Also:
BUNDLE_NAME