com.ibatis.common.logging
Class LogFactory

java.lang.Object
  extended by com.ibatis.common.logging.LogFactory

public class LogFactory
extends java.lang.Object


构造器摘要
LogFactory()
           
 
方法摘要
static Log getLog(java.lang.Class aClass)
           
static void selectJavaLogging()
          This method will switch the logging implementation to Java native logging if you are running in JRE 1.4 or above.
static void selectLog4JLogging()
          This method will switch the logging implementation to Log4J if Log4J is available on the classpath.
 
类方法继承: java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

LogFactory

public LogFactory()
方法详细信息

getLog

public static Log getLog(java.lang.Class aClass)

selectLog4JLogging

public static void selectLog4JLogging()
This method will switch the logging implementation to Log4J if Log4J is available on the classpath. This is useful in situations where you want to use Log4J to log iBATIS activity but commons logging 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 iBATIS method.


selectJavaLogging

public static void selectJavaLogging()
This method will switch the logging implementation to Java native logging if you are running in JRE 1.4 or above. This is useful in situations where you want to use Java native logging to log iBATIS activity but commons logging or 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 iBATIS method.