include the same fields as Event Viewer in EventLogRecord.toString

This commit is contained in:
Doug MacEachern 2009-11-09 16:30:47 -08:00
parent 9cc30ca006
commit 32512cde90
1 changed files with 4 additions and 1 deletions

View File

@ -179,10 +179,13 @@ public class EventLogRecord {
public String toString()
{
return
"[" + new Date(getTimeGenerated() * 1000) + "] " +
"[" + getEventTypeString() + "] " +
"[" + new Date(getTimeGenerated() * 1000) + "] " +
"[" + getSource() + "] " +
"[" + getCategoryString() + "] " +
"[" + getEventId() + "] " +
"[" + getUser() + "] " +
"[" + getComputerName() + "] " +
getMessage();
}
}