public class LogEntry
extends java.lang.Object
LogEntry holds all information of a LoggingEvent which has
to be saved to the database.| Constructor and Description |
|---|
LogEntry()
Default constructor.
|
LogEntry(java.lang.String message)
Construct a new
LogEntry with the given message. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Get the class name where the
LoggingEvent was created. |
java.lang.Integer |
getCount()
Get the count of occurences of the
LoggingEvent. |
LogExceptionEntry |
getException()
Get a reference to a related exception.
|
java.lang.Integer |
getId()
Get the identity of this object.
|
java.lang.String |
getLevel()
Get the logging level.
|
java.lang.String |
getMessage()
Get the logging message.
|
java.lang.String |
getThread()
Get the thread on which the
LoggingEvent was created. |
java.util.Date |
getTimestamp()
Get the timestamp when the
LoggingEvent was created. |
void |
setClassName(java.lang.String className)
Set the class name where the
LoggingEvent was created. |
void |
setCount(java.lang.Integer count)
Set the count of occurences of the
LoggingEvent. |
void |
setException(LogExceptionEntry exception)
Set a reference to a related exception.
|
void |
setId(java.lang.Integer id)
Set the identity of this object.
|
void |
setLevel(java.lang.String level)
Set the logging level.
|
void |
setMessage(java.lang.String message)
Set the logging message.
|
void |
setThread(java.lang.String thread)
Set the thread on which the
LoggingEvent was created. |
void |
setTimestamp(java.util.Date timestamp)
Set the timestamp when the
LoggingEvent was created. |
public LogEntry()
public LogEntry(java.lang.String message)
LogEntry with the given message.message - The message to set for this LogEntry.public final java.lang.Integer getId()
public final void setId(java.lang.Integer id)
id - The identity of this object.public final java.util.Date getTimestamp()
LoggingEvent was created.LoggingEvent was created.public final void setTimestamp(java.util.Date timestamp)
LoggingEvent was created.timestamp - Timestamp when the LoggingEvent was created.public final java.lang.String getClassName()
LoggingEvent was created.LoggingEvent was created.public final void setClassName(java.lang.String className)
LoggingEvent was created.className - Class name where the LoggingEvent was created.public final java.lang.String getLevel()
public final void setLevel(java.lang.String level)
level - Logging level.public final java.lang.String getThread()
LoggingEvent was created.LoggingEvent was created.public final void setThread(java.lang.String thread)
LoggingEvent was created.thread - Thread on which the LoggingEvent was created.public final java.lang.String getMessage()
public final void setMessage(java.lang.String message)
message - Logging message.public final java.lang.Integer getCount()
LoggingEvent.LoggingEvent.public final void setCount(java.lang.Integer count)
LoggingEvent.count - Count of occurences of the LoggingEvent.public final LogExceptionEntry getException()
public final void setException(LogExceptionEntry exception)
exception - A reference to a related exception.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com