org.castor.tools.log4j
public class LogEntry extends Object
LogEntry
holds all information of a LoggingEvent
which has
to be saved to the database.
Version: $Id: TNSAddress.java,v 1.2 2006/08/08 14:42:48 holger Exp $
Constructor Summary | |
---|---|
LogEntry()
Default constructor. | |
LogEntry(String message)
Construct a new LogEntry with the given message.
|
Method Summary | |
---|---|
String | getClassName()
Get the class name where the LoggingEvent was created.
|
Integer | getCount()
Get the count of occurences of the LoggingEvent .
|
LogExceptionEntry | getException()
Get a reference to a related exception.
|
Integer | getId()
Get the identity of this object.
|
String | getLevel()
Get the logging level.
|
String | getMessage()
Get the logging message.
|
String | getThread()
Get the thread on which the LoggingEvent was created.
|
Date | getTimestamp()
Get the timestamp when the LoggingEvent was created.
|
void | setClassName(String className)
Set the class name where the LoggingEvent was created.
|
void | setCount(Integer count)
Set the count of occurences of the LoggingEvent .
|
void | setException(LogExceptionEntry exception)
Set a reference to a related exception.
|
void | setId(Integer id)
Set the identity of this object.
|
void | setLevel(String level)
Set the logging level.
|
void | setMessage(String message)
Set the logging message.
|
void | setThread(String thread)
Set the thread on which the LoggingEvent was created.
|
void | setTimestamp(Date timestamp)
Set the timestamp when the LoggingEvent was created.
|
LogEntry
with the given message.
Parameters: message The message to set for this LogEntry
.
LoggingEvent
was created.
Returns: Class name where the LoggingEvent
was created.
LoggingEvent
.
Returns: Count of occurences of the LoggingEvent
.
Returns: A reference to a related exception.
Returns: The identity of this object.
Returns: Logging level.
Returns: Logging message.
LoggingEvent
was created.
Returns: Thread on which the LoggingEvent
was created.
LoggingEvent
was created.
Returns: Timestamp when the LoggingEvent
was created.
LoggingEvent
was created.
Parameters: className Class name where the LoggingEvent
was created.
LoggingEvent
.
Parameters: count Count of occurences of the LoggingEvent
.
Parameters: exception A reference to a related exception.
Parameters: id The identity of this object.
Parameters: level Logging level.
Parameters: message Logging message.
LoggingEvent
was created.
Parameters: thread Thread on which the LoggingEvent
was created.
LoggingEvent
was created.
Parameters: timestamp Timestamp when the LoggingEvent
was created.