修改日志

This commit is contained in:
junj2.liang
2022-09-13 12:41:24 +08:00
parent 3ed721b788
commit 2a2bcb33e5
7 changed files with 10 additions and 23 deletions
+5 -2
View File
@@ -3,6 +3,7 @@ package sample;
import com.sunyard.proto.Util;
import com.sunyard.sge.database.*;
import com.sunyard.sge.database.Consts;
import com.sunyard.sge.log.LogFactory;
import org.apache.logging.log4j.Logger;
import org.junit.Assert;
@@ -15,7 +16,8 @@ public class Sample
public static void main(String[] args) {
// 路径要以 / 或 \\ 结尾表示目录
SydApi.SYD_SetLogConfig("./logs/",3);
LogFactory.getiLogLevel();
// 通常单例就够了
SydApiBuilder builder = new SydApiBuilder(
new String[]{ "192.168.1.129","172.16.18.59" },
@@ -60,10 +62,11 @@ public class Sample
// 长数据 SM3
longSM3( api );
} finally {
if ( null != api ) {
LogFactory.getLogger().debug("END");
api.SYD_Disconnect_Ex();
}
}
}