diff --git a/bindings/java/src/net/hyperic/sigar/win32/EventLog.java b/bindings/java/src/net/hyperic/sigar/win32/EventLog.java index 66a2d311..159fbba6 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/EventLog.java +++ b/bindings/java/src/net/hyperic/sigar/win32/EventLog.java @@ -4,6 +4,10 @@ public class EventLog extends Win32 { int eventLogHandle = 0; // holds the event log HANDLE + public static final String SYSTEM = "SYSTEM"; + public static final String APPLICATION = "APPLICATION"; + public static final String SECURITY = "SECURITY"; + // Event log types as defined in WINNT.H public static final int EVENTLOG_SUCCESS = 0x0000; public static final int EVENTLOG_ERROR_TYPE = 0x0001; diff --git a/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java b/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java index 51af8f54..55fe6abb 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java +++ b/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java @@ -163,7 +163,9 @@ public class EventLogThread implements Runnable { public static void main(String[] args) { if (args.length == 0) { args = new String[] { - "System", "Application", "Security" + EventLog.SYSTEM, + EventLog.APPLICATION, + EventLog.SECURITY }; }