add debug log

This commit is contained in:
Doug MacEachern 2004-07-17 19:38:18 +00:00
parent bd162b8f7b
commit 97a3547b60
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ public class SigarLog {
getLogger().error(msg, exc); 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 //XXX want to make this automatic, but also dont always
//want to turn on logging, since most sigar logging will be DEBUG //want to turn on logging, since most sigar logging will be DEBUG
public static void enable(Sigar sigar) { public static void enable(Sigar sigar) {