include the same fields as Event Viewer in EventLogRecord.toString
This commit is contained in:
1 parent
9cc30ca006
commit
32512cde90
1 file changed
+4
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user