package com.github.bingoohuang.ibatis;

public class BlackcatUtils {
    public static boolean classExists(String className) {
        try {
            Class.forName(className);
            return true;
        } catch (Throwable e) { // including ClassNotFoundException
            return false;
        }
    }


    public static boolean HasBlackcat = classExists(
            "com.github.bingoohuang.blackcat.javaagent.callback.Blackcat");

    public static void log(String msgType, String msg) {
        if (!HasBlackcat) return;

        com.github.bingoohuang.blackcat.javaagent.callback
                .Blackcat.log(msgType, msg);
    }
}

@@ -489,19 +489,39 @@
  String 
-msg
+pattern, Object... args
 ) %7B%0A    
@@ -649,19 +649,29 @@
 sgType, 
-msg
+pattern, args
 );%0A    %7D

refactor api