Many bugfixes and improvements
This commit is contained in:
parent
c3e3bbf787
commit
363e0c6cfc
52 changed files with 2021 additions and 982 deletions
|
|
@ -43,7 +43,7 @@ public class LogUtil {
|
|||
/**
|
||||
* Sets the global log formatter to the specified one
|
||||
*
|
||||
* @param f is the formatter class
|
||||
* @param f is the formatter class
|
||||
*/
|
||||
public static void setGlobalFormatter(Formatter f){
|
||||
Logger root = Logger.getLogger("");
|
||||
|
|
@ -51,6 +51,18 @@ public class LogUtil {
|
|||
handler.setFormatter(f);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the log formatter
|
||||
*
|
||||
* @param f is the formatter class
|
||||
*/
|
||||
public static void setFormatter(String name, Formatter f){
|
||||
Logger root = Logger.getLogger(name);
|
||||
for (Handler handler : root.getHandlers()) {
|
||||
handler.setFormatter(f);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the global log level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue