daikon
Class LogHelper

Object
  extended by LogHelper

public final class LogHelper
extends Object

Standard methods for setting up logging. Allows creation of Console writers using one method. Logger methods should only be called in a shell class at setup, after which Logger calls should be used for logging.


Nested Class Summary
static class LogHelper.DaikonLogFormatter
           
 
Field Summary
static Level FINE
           
static Level INFO
           
static Level SEVERE
           
static Level WARNING
           
 
Method Summary
static void setLevel(String s, 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FINE

public static final Level FINE

INFO

public static final Level INFO

WARNING

public static final Level WARNING

SEVERE

public static final Level SEVERE
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(String s,
                            Level l)
Changes the logging priority of a sub category.