org.midao.jdbc.core
Class MidaoLogger

java.lang.Object
  extended by java.util.logging.Logger
      extended by org.midao.jdbc.core.MidaoLogger

public class MidaoLogger
extends java.util.logging.Logger

Midao Logger is responsible for performing all logging operation. If SLF4j found in class loader - it would be used. Otherwise Java Logging would be used


Field Summary
 
Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME
 
Method Summary
static MidaoLogger getLogger(java.lang.Class clazz)
          Creates new MidaoLogger instance
static MidaoLogger getLogger(java.lang.String name)
          Creates new MidaoLogger instance
 void info(java.lang.String msg)
          
static boolean isSLF4jAvailable()
          Checks if SLF4j is available (loaded) in JVM
static boolean isSLF4jImplementationAvailable()
          Checks if any SLF4j API implementation is available (loaded in JVM)
 void severe(java.lang.String msg)
          
 void warning(java.lang.String msg)
          
 
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, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, throwing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static MidaoLogger getLogger(java.lang.String name)
Creates new MidaoLogger instance

Parameters:
name - class name
Returns:
MidaoLogger instance

getLogger

public static MidaoLogger getLogger(java.lang.Class clazz)
Creates new MidaoLogger instance

Parameters:
clazz - Class description
Returns:
MidaoLogger instance

info

public void info(java.lang.String msg)

Overrides:
info in class java.util.logging.Logger

warning

public void warning(java.lang.String msg)

Overrides:
warning in class java.util.logging.Logger

severe

public void severe(java.lang.String msg)

Overrides:
severe in class java.util.logging.Logger

isSLF4jAvailable

public static boolean isSLF4jAvailable()
Checks if SLF4j is available (loaded) in JVM

Returns:
true - if SLF4j is available for use

isSLF4jImplementationAvailable

public static boolean isSLF4jImplementationAvailable()
Checks if any SLF4j API implementation is available (loaded in JVM)

Returns:
true - if SLF4j implementation is available for use


Copyright © 2013. All Rights Reserved.