Added NetLogServer class

This commit is contained in:
Ziver Koc 2013-05-07 16:19:47 +00:00
parent 0dfd6cc049
commit 4360a11357
7 changed files with 68 additions and 20 deletions

View file

@ -60,7 +60,7 @@ public class LogUtil {
}
/**
* Sets the global log formatter to the specified one
* Sets the log formatter to all root Handlers
*
* @param f is the formatter class
*/
@ -72,7 +72,7 @@ public class LogUtil {
}
/**
* Adds the log formatter
* Adds the log formatter to all handlers in the namespace
*
* @param f is the formatter class
*/
@ -90,6 +90,14 @@ public class LogUtil {
setLevel("", level);
}
/**
* Addsd a Handler to the root namespace
*/
public static void addGlobalHandler(Handler handler){
Logger root = Logger.getLogger("");
root.addHandler(handler);
}
/**
* Sets the log level for a specified class
*/