org.mybatis.generator.logging
Class LogFactory
java.lang.Object
org.mybatis.generator.logging.LogFactory
public class LogFactory
- extends Object
Factory for creating loggers. Uses runtime introspection to determine the
AbstractLogFactory implementation.
- Author:
- Jeff Butler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFactory
public LogFactory()
getLog
public static Log getLog(Class<?> clazz)
forceJavaLogging
public static void forceJavaLogging()
- This method will switch the logging implementation to Java native
logging. This is useful in situations where you want to use Java native
logging to log activity but Log4J is on the classpath. Note that
this method is only effective for log classes obtained after calling this
method. If you intend to use this method you should call it before
calling any other method.
setLogFactory
public static void setLogFactory(AbstractLogFactory logFactory)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.