|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.logging.LogItem
public abstract class LogItem
This class is the base class of nested log information as it is used for displaying or transferring log messages.
| Field Summary | |
|---|---|
static String |
INTERNAL_PARAMETER_PREFIX
This is a prefix of an internal parameter of a log message, i.e. a parameter, which is not defined as parameter in the xml file. |
| Constructor Summary | |
|---|---|
LogItem()
|
|
| Method Summary | |
|---|---|
void |
addToParameters(String name,
Object value)
Adds a parameter with value to the stored parameters. |
void |
appendMessageLine(String messageLine)
Appends a new line with supplied message text to the already stored message. |
BusinessImpact |
getBusinessImpact()
Gets the business impact. |
Category |
getCategory()
Gets the category. |
String |
getInstanceId()
Gets the id of the instance which logged this. |
Level |
getLoggerLevel()
Gets the logger level of this entry. |
String |
getMessage()
Gets the message of this entry. |
LogItem |
getNestedItem()
Gets the item nested to this. |
String |
getNodeId()
Gets the id of the node which logged this. |
Set |
getParameterNames()
Gets the parameter names of the parameters for this as unmodifiable Set. |
List |
getParameterValues(String parameterName)
Gets the List of parameter values for the specified parameter name as unmodifiable List. |
LogItem |
getParentItem()
Gets the log item which is parent to this. |
String |
getSolution()
Gets a possible solution. |
String |
getSourceClass()
Gets the name of the class where the message was logged. |
String |
getSourceMethod()
Gets the name of the method where this was logged. |
List |
getStackTraceLines()
Gets the list of stack trace linesstored by this. |
String |
getSymbol()
Gets the message symbol. |
String |
getSymbolId()
Gets the id of the message symbol in hex representation. |
long |
getThreadId()
Gets the id of the thread which logged this. |
String |
getThreadName()
Gets the thread name for this LogItem. |
Date |
getTimestamp()
Gets the timestamp of when this was logged. |
String |
getTrackingNumber()
Gets the tracking number of this. |
String |
getType()
Returns the type of this, which is retrieved from the log line type. |
boolean |
isExceptionItem()
Gets information whether this item stores an exception + stacktrace + cause description only. |
void |
reset()
Used for resetting this to an initial state so that this object could be reused again. |
void |
setBusinessImpact(BusinessImpact businessImpact)
Sets the business impact of this. |
void |
setCategory(Category category)
Sets the category of this. |
void |
setInstanceId(String instanceId)
Sets the instance id. |
void |
setLoggerLevel(Level logLevel)
Sets the log level of this. |
void |
setMessage(String message)
Sets the message text. |
void |
setNestedItem(LogItem nestedItem)
Sets the supplied item as nested item for this and this as parent for the supplied item. |
void |
setNodeId(String nodeId)
Sets the node id. |
void |
setParentItem(LogItem parentEntry)
Sets the log item which is parent to this. |
void |
setSolution(String solution)
Sets the possible solution to resolve the error indicated by the logged message. |
void |
setSourceClass(String sourceClass)
Sets the class name of the source location where the message was logged. |
void |
setSourceMethod(String sourceMethod)
Sets the method name of the source location where the message was logged. |
void |
setSymbol(String symbol)
Sets the message symbol. |
void |
setSymbolId(String symbolId)
Sets the message symbol code. |
void |
setThreadId(long threadId)
Sets the thread id. |
void |
setThreadName(String threadName)
Sets the thread name for this LogItem. |
void |
setTimestamp(Date timestamp)
Sets the timestamp of the message. |
void |
setTrackingNumber(String trackingNumber)
Sets the tracking number from the parsed log line. |
void |
setType(String type)
Sets the type of this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INTERNAL_PARAMETER_PREFIX
| Constructor Detail |
|---|
public LogItem()
| Method Detail |
|---|
public void setBusinessImpact(BusinessImpact businessImpact)
businessImpact - The business impact to set.public void setCategory(Category category)
category - The category to set.public void setInstanceId(String instanceId)
instanceId - The instance id to set.public void setLoggerLevel(Level logLevel)
logLevel - The log level, which had been used for logging the
message.public void setMessage(String message)
message - The text of the logged message.public void appendMessageLine(String messageLine)
messageLine - The new line of message.public void setNodeId(String nodeId)
nodeId - The node id to set.public void setSolution(String solution)
solution - The solution for the logged message.public void setSourceClass(String sourceClass)
sourceClass - The name of the class where the message was logged,public void setSourceMethod(String sourceMethod)
sourceMethod - The name of the method where the message was logged,public void setSymbol(String symbol)
symbol - The symbol for the logged message.public void setSymbolId(String symbolId)
symbolId - The id/code for the symbol of the logged message.public void setThreadId(long threadId)
threadId - The thread id to set.public void setTimestamp(Date timestamp)
timestamp - The timestamp of when the message was logged.public void setTrackingNumber(String trackingNumber)
trackingNumber - The tracking number of the logged message.public void setType(String type)
type - The type to set.public void setThreadName(String threadName)
type - The thread name to set..public BusinessImpact getBusinessImpact()
public Category getCategory()
public String getInstanceId()
public Level getLoggerLevel()
public String getMessage()
public String getNodeId()
public Set getParameterNames()
public List getParameterValues(String parameterName)
parameterName - The name of the parameter for which to return the
values.
parameterName is
unknown.public String getSolution()
public String getSourceClass()
public String getSourceMethod()
public List getStackTraceLines()
public String getSymbol()
public String getSymbolId()
public long getThreadId()
public Date getTimestamp()
public String getTrackingNumber()
public String getType()
public String getThreadName()
public boolean isExceptionItem()
public LogItem getNestedItem()
public void setNestedItem(LogItem nestedItem)
nestedItem - The LogItem to set as nested item for this.public void setParentItem(LogItem parentEntry)
parentEntry - The parentEntry to set.public LogItem getParentItem()
public void addToParameters(String name,
Object value)
name - The name of the parameter.value - The value of the parameter with this name.
public void reset()
throws LoggingException
LoggingException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||