include the same fields as Event Viewer in EventLogRecord.toString
This commit is contained in:
parent
9cc30ca006
commit
32512cde90
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue