public class LogEvent extends EventObject
Use the various query methods to determine the details of the event. The event
source (from EventObject.getSource()) is always a String.
Log,
LogListener,
Serialized Formsource| Constructor and Description |
|---|
LogEvent(Date timestamp,
String source,
Object category,
String message)
Create a "message logged" event.
|
LogEvent(String stream)
Create a "stream stopped" event.
|
LogEvent(String stream,
Date timestamp,
String source)
Create a "stream started" event.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCategory()
Get the category.
|
String |
getMessage()
Get the message.
|
String |
getStream()
Get the stream.
|
Date |
getTimestamp()
Get the timestamp.
|
String |
toString()
Return a string representation of this event.
|
getSourcepublic LogEvent(Date timestamp, String source, Object category, String message)
timestamp - The message's timestamp.source - The source label of the message.category - The message's category.message - The message.public LogEvent(String stream, Date timestamp, String source)
stream - The name of the stream.timestamp - The time the stream started.source - A string identifying who or what started the stream.public LogEvent(String stream)
stream - The name of the stream.public Object getCategory()
public String getMessage()
public String getStream()
public Date getTimestamp()
public String toString()
toString in class EventObjectCopyright © 1999–2017 Apache OODT. All rights reserved.