org.castor.tools.log4j

Class LogEntry

public class LogEntry extends 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
StringgetClassName()
Get the class name where the LoggingEvent was created.
IntegergetCount()
Get the count of occurences of the LoggingEvent.
LogExceptionEntrygetException()
Get a reference to a related exception.
IntegergetId()
Get the identity of this object.
StringgetLevel()
Get the logging level.
StringgetMessage()
Get the logging message.
StringgetThread()
Get the thread on which the LoggingEvent was created.
DategetTimestamp()
Get the timestamp when the LoggingEvent was created.
voidsetClassName(String className)
Set the class name where the LoggingEvent was created.
voidsetCount(Integer count)
Set the count of occurences of the LoggingEvent.
voidsetException(LogExceptionEntry exception)
Set a reference to a related exception.
voidsetId(Integer id)
Set the identity of this object.
voidsetLevel(String level)
Set the logging level.
voidsetMessage(String message)
Set the logging message.
voidsetThread(String thread)
Set the thread on which the LoggingEvent was created.
voidsetTimestamp(Date timestamp)
Set the timestamp when the LoggingEvent was created.

Constructor Detail

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 Detail

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