修改日志
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user