Example usage for org.apache.ibatis.logging LogFactory useCustomLogging

List of usage examples for org.apache.ibatis.logging LogFactory useCustomLogging

Introduction

In this page you can find the example usage for org.apache.ibatis.logging LogFactory useCustomLogging.

Prototype

public static synchronized void useCustomLogging(Class<? extends Log> clazz) 

Source Link

Usage

From source file:com.dmm.framework.basedb.apache.ibatis.session.Configuration.java

License:Apache License

@SuppressWarnings("unchecked")
public void setLogImpl(Class<?> logImpl) {
    if (logImpl != null) {
        this.logImpl = (Class<? extends Log>) logImpl;
        LogFactory.useCustomLogging(this.logImpl);
    }/*from  w  w  w  .j  a v  a2s  . c om*/
}

From source file:org.yx.sumk.batis.MybatisLog.java

License:Apache License

public static void enableMybatisLog() {
    LogFactory.useCustomLogging(MybatisLog.class);
}