From 97a3547b608f3ba0ec5361089c0a0b03a0426da8 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 17 Jul 2004 19:38:18 +0000 Subject: [PATCH] add debug log --- bindings/java/src/net/hyperic/sigar/SigarLog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/java/src/net/hyperic/sigar/SigarLog.java b/bindings/java/src/net/hyperic/sigar/SigarLog.java index b01471f6..ddac12ac 100644 --- a/bindings/java/src/net/hyperic/sigar/SigarLog.java +++ b/bindings/java/src/net/hyperic/sigar/SigarLog.java @@ -37,6 +37,10 @@ public class SigarLog { getLogger().error(msg, exc); } + static void debug(String msg, Throwable exc) { + getLogger().debug(msg, exc); + } + //XXX want to make this automatic, but also dont always //want to turn on logging, since most sigar logging will be DEBUG public static void enable(Sigar sigar) {