Package com.webmethods.jms.log
Class LogMessage
- java.lang.Object
-
- com.webmethods.jms.log.LogMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class LogMessage extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogMessage(Log.Level level, java.lang.String message)
Construct a LogMessage.LogMessage(Log.Level level, java.lang.String message, java.lang.Object arg)
Construct a LogMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getArgument()
Get the message argument.java.lang.String
getCategoryName()
Get the name of the category that generated this message.Log.Level
getLevel()
Get the message level.java.lang.String
getMessage()
Get the message.long
getMillis()
Get the message timestamp.void
setCategoryName(java.lang.String name)
Set the name of the category that generated this message.
-
-
-
Constructor Detail
-
LogMessage
public LogMessage(Log.Level level, java.lang.String message)
Construct a LogMessage.- Parameters:
level
- The level of the message.message
- The string message.
-
LogMessage
public LogMessage(Log.Level level, java.lang.String message, java.lang.Object arg)
Construct a LogMessage.- Parameters:
level
- The level of the message.message
- The string message.arg
- The message argument.
-
-
Method Detail
-
getLevel
public Log.Level getLevel()
Get the message level.- Returns:
- The message level.
-
getMessage
public java.lang.String getMessage()
Get the message.- Returns:
- The message.
-
getArgument
public java.lang.Object getArgument()
Get the message argument.- Returns:
- The message argument.
-
getMillis
public long getMillis()
Get the message timestamp.- Returns:
- The message timestamp.
-
setCategoryName
public void setCategoryName(java.lang.String name)
Set the name of the category that generated this message.- Parameters:
name
- The logger name.
-
getCategoryName
public java.lang.String getCategoryName()
Get the name of the category that generated this message.- Returns:
- The logger name.
-
-