|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.ormlite.logger.LoggerFactory
public class LoggerFactory
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 |
---|
public static final String LOG_TYPE_SYSTEM_PROPERTY
Method Detail |
---|
public static Logger getLogger(Class<?> clazz)
public static Logger getLogger(String className)
public static String getSimpleClassName(String className)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |