add public getLogger method
This commit is contained in:
parent
9ffbe0fa34
commit
d0c60802c4
|
@ -26,7 +26,11 @@ public class SigarLog {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Logger getLogger() {
|
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()) {
|
if (!isLogConfigured()) {
|
||||||
BasicConfigurator.configure();
|
BasicConfigurator.configure();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue