com.j256.ormlite.logger
Class LoggerFactory

java.lang.Object
  extended by com.j256.ormlite.logger.LoggerFactory

public class LoggerFactory
extends Object

Factory that creates Logger instances for ORMLite. It uses reflection to see what loggers are installed on the system and tries to find the most appropriate one.

To set the logger to a particular type, set the system property ("com.j256.ormlite.logger.type") contained in LOG_TYPE_SYSTEM_PROPERTY to be one of the values in LogType enum.


Nested Class Summary
static class LoggerFactory.LogType
          Type of internal logs supported.
 
Field Summary
static String LOG_TYPE_SYSTEM_PROPERTY
           
 
Method Summary
static Logger getLogger(Class<?> clazz)
          Return a logger associated with a particular class.
static Logger getLogger(String className)
          Return a logger associated with a particular class name.
static String getSimpleClassName(String className)
          Return the single class name from a class-name string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TYPE_SYSTEM_PROPERTY

public static final String LOG_TYPE_SYSTEM_PROPERTY
See Also:
Constant Field Values
Method Detail

getLogger

public static Logger getLogger(Class<?> clazz)
Return a logger associated with a particular class.


getLogger

public static Logger getLogger(String className)
Return a logger associated with a particular class name.


getSimpleClassName

public static String getSimpleClassName(String className)
Return the single class name from a class-name string.



This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.