Package daikon
Class LogHelper
- Object
-
- LogHelper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogHelper.DaikonLogFormatter
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setLevel(String s, Level l)
Changes the logging priority of a sub category.static void
setLevel(Logger lg, Level l)
Changes the logging priority of a sub category.static void
setupLogs()
Default method for setting up global logs.static void
setupLogs(Level l)
Sets up global logs with a given priority.static void
setupLogs(Level l, Formatter formatter)
Sets up global logs with a given priority and logging output pattern.
-
-
-
Method Detail
-
setupLogs
public static void setupLogs(Level l, Formatter formatter)
Sets up global logs with a given priority and logging output pattern. Creates one ConsoleHandler at root to receive default messages, setting priority to INFO. Removes previous appenders at root.
-
setupLogs
public static void setupLogs()
Default method for setting up global logs.
-
setupLogs
public static void setupLogs(Level l)
Sets up global logs with a given priority. Creates one ConsoleHandler. Removes previous appenders at root.
-
setLevel
public static void setLevel(Logger lg, Level l)
Changes the logging priority of a sub category. Also caches the logger to avoid garbage-collection and recreation with the old level.
-
-