add public getLogger method

This commit is contained in:
Doug MacEachern 2005-04-28 00:39:13 +00:00
parent 9ffbe0fa34
commit d0c60802c4
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ public class SigarLog {
}
private static Logger getLogger() {
Logger log = Logger.getLogger("Sigar");
return getLogger("Sigar");
}
public static Logger getLogger(String name) {
Logger log = Logger.getLogger(name);
if (!isLogConfigured()) {
BasicConfigurator.configure();
}