org.jcoderz.commons
Class TstLogMessage.TestMessage

java.lang.Object
  extended by org.jcoderz.commons.LogMessageInfoImpl
      extended by org.jcoderz.commons.TstLogMessage
          extended by org.jcoderz.commons.TstLogMessage.TestMessage
All Implemented Interfaces:
Serializable, LogMessageInfo
Enclosing class:
TstLogMessage

public static final class TstLogMessage.TestMessage
extends TstLogMessage
implements Serializable

This is a test message and should not be used in a production environment. The parameter foo is set to ''{FOO}''. Now it''s {java.util.Date:NOW,date}. Time {java.util.Date:NOW,time}. .

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

It holds the following parameters:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jcoderz.commons.TstLogMessage
TstLogMessage.TestAuditMessage, TstLogMessage.TestMessage
 
Field Summary
static int INT_VALUE
          The unique integer value of the log message TEST_MESSAGE.
static Level LOG_LEVEL
          The LogLevel to use.
static String PARAM_FOO
          The parameter FOO for the log message text.
static String PARAM_NOW
          The parameter NOW for the log message text.
static String SYMBOL
          The unique symbolic String of the log message TEST_MESSAGE.
 
Fields inherited from class org.jcoderz.commons.TstLogMessage
TEST_AUDIT_MESSAGE, TEST_MESSAGE
 
Method Summary
static Loggable addParameters(Loggable loggable, String foo, Date now)
          Adds the given message parameters to the loggable.
static void log(String foo, Date now)
          Logs the message "This is a test message and should not be used in a production environment.
static void log(String foo, Date now, Throwable cause)
          Logs the message "This is a test message and should not be used in a production environment.
 
Methods inherited from class org.jcoderz.commons.TstLogMessage
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 TEST_MESSAGE.

See Also:
Constant Field Values

PARAM_FOO

public static final String PARAM_FOO
The parameter FOO for the log message text.

See Also:
Constant Field Values

PARAM_NOW

public static final String PARAM_NOW
The parameter NOW for the log message text.

See Also:
Constant Field Values

SYMBOL

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

See Also:
Constant Field Values
description
This is a test message and should not be used in a production environment. The parameter foo is set to ''{FOO}''. Now it''s {java.util.Date:NOW,date}. Time {java.util.Date:NOW,time}.
solution
This is the solution of the test message.

LOG_LEVEL

public static final Level LOG_LEVEL
The LogLevel to use.

Method Detail

log

public static void log(String foo,
                       Date now)
Logs the message "This is a test message and should not be used in a production environment. The parameter foo is set to ''{FOO}''. Now it''s {java.util.Date:NOW,date}. Time {java.util.Date:NOW,time}." with the given parameters.

Parameters:
foo - The foo used in the message.
now - The now used in the message.

log

public static void log(String foo,
                       Date now,
                       Throwable cause)
Logs the message "This is a test message and should not be used in a production environment. The parameter foo is set to ''{FOO}''. Now it''s {java.util.Date:NOW,date}. Time {java.util.Date:NOW,time}." with the given parameters.

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

addParameters

public static Loggable addParameters(Loggable loggable,
                                     String foo,
                                     Date now)
Adds the given message parameters to the loggable.

Parameters:
loggable - the loggable to initialize.
foo - The foo used in the message.
now - The now used in the message.
Returns:
the given initialized loggable.


Copyright 2007 The jCoderZ Project.