org.castor.tools.log4j
Class LogEntry
java.lang.Object
org.castor.tools.log4j.LogEntry
public class LogEntry
extends java.lang.Object
A LogEntry
holds all information of a LoggingEvent
which has
to be saved to the database.
$Id: TNSAddress.java,v 1.2 2006/08/08 14:42:48 holger Exp $- Holger West,
Syscon Ingenieurb?ro f?r Mess- und Datentechnik GmbH.
LogEntry() - Default constructor.
|
LogEntry(String message) - Construct a new
LogEntry with the given message.
|
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
public LogEntry()
Default constructor.
LogEntry
public LogEntry(String message)
Construct a new LogEntry
with the given message.
message
- The message to set for this LogEntry
.
getClassName
public final String getClassName()
Get the class name where the LoggingEvent
was created.
- Class name where the
LoggingEvent
was created.
getCount
public final Integer getCount()
Get the count of occurences of the LoggingEvent
.
- Count of occurences of the
LoggingEvent
.
getException
public final LogExceptionEntry getException()
Get a reference to a related exception.
- A reference to a related exception.
getId
public final Integer getId()
Get the identity of this object.
- The identity of this object.
getLevel
public final String getLevel()
Get the logging level.
getMessage
public final String getMessage()
Get the logging message.
getThread
public final String getThread()
Get the thread on which the LoggingEvent
was created.
- Thread on which the
LoggingEvent
was created.
getTimestamp
public final Date getTimestamp()
Get the timestamp when the LoggingEvent
was created.
- Timestamp when the
LoggingEvent
was created.
setClassName
public final void setClassName(String className)
Set the class name where the LoggingEvent
was created.
className
- Class name where the LoggingEvent
was created.
setCount
public final void setCount(Integer count)
Set the count of occurences of the LoggingEvent
.
count
- Count of occurences of the LoggingEvent
.
setException
public final void setException(LogExceptionEntry exception)
Set a reference to a related exception.
exception
- A reference to a related exception.
setId
public final void setId(Integer id)
Set the identity of this object.
id
- The identity of this object.
setLevel
public final void setLevel(String level)
Set the logging level.
setMessage
public final void setMessage(String message)
Set the logging message.
message
- Logging message.
setThread
public final void setThread(String thread)
Set the thread on which the LoggingEvent
was created.
thread
- Thread on which the LoggingEvent
was created.
setTimestamp
public final void setTimestamp(Date timestamp)
Set the timestamp when the LoggingEvent
was created.
timestamp
- Timestamp when the LoggingEvent
was created.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com