From 32512cde904d1c3915ea7c50262275e067a42ff7 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 9 Nov 2009 16:30:47 -0800 Subject: [PATCH] include the same fields as Event Viewer in EventLogRecord.toString --- .../java/src/org/hyperic/sigar/win32/EventLogRecord.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java b/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java index 2ddaa2f9..bd28ba41 100644 --- a/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java +++ b/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java @@ -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(); } }