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()
|
public String toString()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"[" + new Date(getTimeGenerated() * 1000) + "] " +
|
|
||||||
"[" + getEventTypeString() + "] " +
|
"[" + getEventTypeString() + "] " +
|
||||||
|
"[" + new Date(getTimeGenerated() * 1000) + "] " +
|
||||||
"[" + getSource() + "] " +
|
"[" + getSource() + "] " +
|
||||||
"[" + getCategoryString() + "] " +
|
"[" + getCategoryString() + "] " +
|
||||||
|
"[" + getEventId() + "] " +
|
||||||
|
"[" + getUser() + "] " +
|
||||||
|
"[" + getComputerName() + "] " +
|
||||||
getMessage();
|
getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue