jmce - 1_02

jmce.util
Class Logger

java.lang.Object
  extended by java.util.logging.Logger
      extended by jmce.util.Logger

public class Logger
extends java.util.logging.Logger

Extension to java.util.logging.Logger to provide method for create logger using the class object and not the class name. Also at startup read the configuration files from the disk.

Log level

Version:
1.00
Author:
Mario Viara

Field Summary
static java.lang.String configuration
           
 
Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME
 
Method Summary
 void fatal(java.lang.Exception ex)
           
 void fine(java.lang.Exception ex)
           
static Logger getLogger(java.lang.Class clazz)
          Return a logger for the specified class
static Logger getLogger(java.lang.String name)
          Return a logger for the specified class name
 void info(java.lang.Exception ex)
           
static void setConfiguration(java.lang.String s)
          Set the file name for the logger configuration
 void warning(java.lang.Exception ex)
           
static void writeEx(java.lang.Throwable e)
          Dump the strack trace after one exception.
 
Methods inherited from class java.util.logging.Logger
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

public static java.lang.String configuration
Method Detail

getLogger

public static Logger getLogger(java.lang.Class clazz)
Return a logger for the specified class


getLogger

public static Logger getLogger(java.lang.String name)
Return a logger for the specified class name


fine

public void fine(java.lang.Exception ex)

info

public void info(java.lang.Exception ex)

warning

public void warning(java.lang.Exception ex)

fatal

public void fatal(java.lang.Exception ex)

setConfiguration

public static void setConfiguration(java.lang.String s)
Set the file name for the logger configuration


writeEx

public static void writeEx(java.lang.Throwable e)
Dump the strack trace after one exception.

Since:
1.02

jmce - 1_02