org.jcoderz.commons.config
Class CfgLogMessage.ConfigurationValueRead

java.lang.Object
  extended by org.jcoderz.commons.LogMessageInfoImpl
      extended by org.jcoderz.commons.config.CfgLogMessage
          extended by org.jcoderz.commons.config.CfgLogMessage.ConfigurationValueRead
All Implemented Interfaces:
Serializable, LogMessageInfo
Enclosing class:
CfgLogMessage

public static final class CfgLogMessage.ConfigurationValueRead
extends CfgLogMessage
implements Serializable

Read config value for {KEY} = ''{VALUE}''. .

This class holds the static data for the CONFIGURATION_VALUE_READ log message.

It holds the following parameters:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jcoderz.commons.config.CfgLogMessage
CfgLogMessage.ConfigurationFactoryFailed, CfgLogMessage.ConfigurationInitializationFailed, CfgLogMessage.ConfigurationTypeConversionFailed, CfgLogMessage.ConfigurationValueNotFound, CfgLogMessage.ConfigurationValueRead
 
Field Summary
static int INT_VALUE
          The unique integer value of the log message CONFIGURATION_VALUE_READ.
static Level LOG_LEVEL
          The LogLevel to use.
static String PARAM_KEY
          The parameter KEY for the log message text.
static String PARAM_VALUE
          The parameter VALUE for the log message text.
static String SYMBOL
          The unique symbolic String of the log message CONFIGURATION_VALUE_READ.
 
Fields inherited from class org.jcoderz.commons.config.CfgLogMessage
CONFIGURATION_FACTORY_FAILED, CONFIGURATION_INITIALIZATION_FAILED, CONFIGURATION_TYPE_CONVERSION_FAILED, CONFIGURATION_VALUE_NOT_FOUND, CONFIGURATION_VALUE_READ
 
Method Summary
static Loggable addParameters(Loggable loggable, String key, String value)
          Adds the given message parameters to the loggable.
static void log(String key, String value)
          Logs the message "Read config value for {KEY} = ''{VALUE}''."
static void log(String key, String value, Throwable cause)
          Logs the message "Read config value for {KEY} = ''{VALUE}''."
 
Methods inherited from class org.jcoderz.commons.config.CfgLogMessage
fromInt, fromString
 
Methods inherited from class org.jcoderz.commons.LogMessageInfoImpl
formatMessage, getAppName, getAppNameAbbreviation, getBusinessImpact, getCategory, getGroupName, getGroupNameAbbreviation, getLogLevel, getMessagePattern, getParameterList, getSolution, getSymbol, toInt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INT_VALUE

public static final int INT_VALUE
The unique integer value of the log message CONFIGURATION_VALUE_READ.

See Also:
Constant Field Values

PARAM_KEY

public static final String PARAM_KEY
The parameter KEY for the log message text.

See Also:
Constant Field Values

PARAM_VALUE

public static final String PARAM_VALUE
The parameter VALUE for the log message text.

See Also:
Constant Field Values

SYMBOL

public static final String SYMBOL
The unique symbolic String of the log message CONFIGURATION_VALUE_READ.

See Also:
Constant Field Values
description
Read config value for {KEY} = ''{VALUE}''.

LOG_LEVEL

public static final Level LOG_LEVEL
The LogLevel to use.

Method Detail

log

public static void log(String key,
                       String value)
Logs the message "Read config value for {KEY} = ''{VALUE}''." with the given parameters.

Parameters:
key - The key used in the message.
value - The value used in the message.

log

public static void log(String key,
                       String value,
                       Throwable cause)
Logs the message "Read config value for {KEY} = ''{VALUE}''." with the given parameters.

Parameters:
key - The key used in the message.
value - The value used in the message.
cause - the Throwable that causes this message to be logged.

addParameters

public static Loggable addParameters(Loggable loggable,
                                     String key,
                                     String value)
Adds the given message parameters to the loggable.

Parameters:
loggable - the loggable to initialize.
key - The key used in the message.
value - The value used in the message.
Returns:
the given initialized loggable.


Copyright 2007 The jCoderZ Project.