org.castor.tools.log4j
Class LogEntry

java.lang.Object
  extended byorg.castor.tools.log4j.LogEntry
Direct Known Subclasses:
LogReferenceExtension

public class LogEntry
extends java.lang.Object

A 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 $
Author:
Holger West, Syscon Ingenieurbüro für Mess- und Datentechnik GmbH.

Constructor Summary
LogEntry()
          Default constructor.
LogEntry(java.lang.String message)
          Construct a new LogEntry with the given message.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry()
Default constructor.


LogEntry

public LogEntry(java.lang.String message)
Construct a new LogEntry with the given message.

Parameters:
message - The message to set for this LogEntry.
Method Detail

getId

public final java.lang.Integer getId()
Get the identity of this object.

Returns:
The identity of this object.

setId

public final void setId(java.lang.Integer id)
Set the identity of this object.

Parameters:
id - The identity of this object.

getTimestamp

public final java.util.Date getTimestamp()
Get the timestamp when the LoggingEvent was created.

Returns:
Timestamp when the LoggingEvent was created.

setTimestamp

public final void setTimestamp(java.util.Date timestamp)
Set the timestamp when the LoggingEvent was created.

Parameters:
timestamp - Timestamp when the LoggingEvent was created.

getClassName

public final java.lang.String getClassName()
Get the class name where the LoggingEvent was created.

Returns:
Class name where the LoggingEvent was created.

setClassName

public final void setClassName(java.lang.String className)
Set the class name where the LoggingEvent was created.

Parameters:
className - Class name where the LoggingEvent was created.

getLevel

public final java.lang.String getLevel()
Get the logging level.

Returns:
Logging level.

setLevel

public final void setLevel(java.lang.String level)
Set the logging level.

Parameters:
level - Logging level.

getThread

public final java.lang.String getThread()
Get the thread on which the LoggingEvent was created.

Returns:
Thread on which the LoggingEvent was created.

setThread

public final void setThread(java.lang.String thread)
Set the thread on which the LoggingEvent was created.

Parameters:
thread - Thread on which the LoggingEvent was created.

getMessage

public final java.lang.String getMessage()
Get the logging message.

Returns:
Logging message.

setMessage

public final void setMessage(java.lang.String message)
Set the logging message.

Parameters:
message - Logging message.

getCount

public final java.lang.Integer getCount()
Get the count of occurences of the LoggingEvent.

Returns:
Count of occurences of the LoggingEvent.

setCount

public final void setCount(java.lang.Integer count)
Set the count of occurences of the LoggingEvent.

Parameters:
count - Count of occurences of the LoggingEvent.

getException

public final LogExceptionEntry getException()
Get a reference to a related exception.

Returns:
A reference to a related exception.

setException

public final void setException(LogExceptionEntry exception)
Set a reference to a related exception.

Parameters:
exception - A reference to a related exception.


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com