org.castor.tools.log4j

Class LogEntry

Known Direct 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(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.

Constructor Details

LogEntry

public LogEntry()
Default constructor.

LogEntry

public LogEntry(String message)
Construct a new LogEntry with the given message.
Parameters:
message - The message to set for this LogEntry.

Method Details

getClassName

public final String getClassName()
Get the class name where the LoggingEvent was created.
Returns:
Class name where the LoggingEvent was created.

getCount

public final Integer getCount()
Get the count of occurences of the LoggingEvent.
Returns:
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.

getId

public final Integer getId()
Get the identity of this object.
Returns:
The identity of this object.

getLevel

public final String getLevel()
Get the logging level.
Returns:
Logging level.

getMessage

public final String getMessage()
Get the logging message.
Returns:
Logging message.

getThread

public final String getThread()
Get the thread on which the LoggingEvent was created.
Returns:
Thread on which the LoggingEvent was created.

getTimestamp

public final Date getTimestamp()
Get the timestamp when the LoggingEvent was created.
Returns:
Timestamp when the LoggingEvent was created.

setClassName

public final void setClassName(String className)
Set the class name where the LoggingEvent was created.
Parameters:
className - Class name where the LoggingEvent was created.

setCount

public final void setCount(Integer count)
Set the count of occurences of the LoggingEvent.
Parameters:
count - Count of occurences of the LoggingEvent.

setException

public final void setException(LogExceptionEntry exception)
Set a reference to a related exception.
Parameters:
exception - A reference to a related exception.

setId

public final void setId(Integer id)
Set the identity of this object.
Parameters:
id - The identity of this object.

setLevel

public final void setLevel(String level)
Set the logging level.
Parameters:
level - Logging level.

setMessage

public final void setMessage(String message)
Set the logging message.
Parameters:
message - Logging message.

setThread

public final void setThread(String thread)
Set the thread on which the LoggingEvent was created.
Parameters:
thread - Thread on which the LoggingEvent was created.

setTimestamp

public final void setTimestamp(Date timestamp)
Set the timestamp when the LoggingEvent was created.
Parameters:
timestamp - Timestamp when the LoggingEvent was created.

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