com.bluemarsh.jswat.report
Class LoggingEvent

java.lang.Object
  |
  +--com.bluemarsh.jswat.report.LoggingEvent

public class LoggingEvent
extends java.lang.Object

Class LoggingEvent represents a debug log event. It encapsulates the message, originating category, and possibly other information about the event.

Version:
1.0 4/7/01
Author:
Nathan Fiedler

Field Summary
protected  Category eventCategory
          Category that originated the event.
protected  java.lang.String eventMessage
          Log message.
protected  java.lang.String threadName
          Name of the thread that generated the event.
 
Constructor Summary
LoggingEvent(Category cat, java.lang.String msg)
          Constructs a logging event using the given source.
 
Method Summary
 Category getCategory()
          Returns the originating category for this event.
 java.lang.String getCategoryName()
          Returns the name of the category for this event.
 java.lang.String getMessage()
          Returns the message for this event.
 java.lang.String getThreadName()
          Returns the name of the thread that created this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventCategory

protected Category eventCategory
Category that originated the event.

eventMessage

protected java.lang.String eventMessage
Log message.

threadName

protected java.lang.String threadName
Name of the thread that generated the event.
Constructor Detail

LoggingEvent

public LoggingEvent(Category cat,
                    java.lang.String msg)
Constructs a logging event using the given source.
Parameters:
cat - category from which the event was reported.
msg - log message.
Method Detail

getCategory

public Category getCategory()
Returns the originating category for this event.
Returns:
Category that created this event.

getCategoryName

public java.lang.String getCategoryName()
Returns the name of the category for this event.
Returns:
name of event category.

getMessage

public java.lang.String getMessage()
Returns the message for this event.
Returns:
log message.

getThreadName

public java.lang.String getThreadName()
Returns the name of the thread that created this event.
Returns:
name of thread.