将日志完整删除
This commit is contained in:
@@ -3,7 +3,6 @@ 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;
|
||||
|
||||
@@ -16,10 +15,6 @@ public class Sample
|
||||
public static void main(String[] args) {
|
||||
|
||||
// 路径要以 / 或 \\ 结尾表示目录
|
||||
SydApi.SYD_SetLogConfig("./logs/",3);
|
||||
|
||||
Logger log = LogFactory.getLogger();
|
||||
log.info("start");
|
||||
|
||||
// 通常单例就够了
|
||||
SydApiBuilder builder = new SydApiBuilder(
|
||||
@@ -71,7 +66,6 @@ public class Sample
|
||||
api.SYD_Disconnect_Ex();
|
||||
}
|
||||
System.out.println("all over");
|
||||
log.info("all over");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ public class ShortLinkSample {
|
||||
public static void main(String[] args) {
|
||||
|
||||
// 路径要以 / 或 \\ 结尾表示目录
|
||||
SydApi.SYD_SetLogConfig("./logs/",3);
|
||||
|
||||
String[] pcipList = {"127.0.0.1", "192.168.0.200" };
|
||||
int[] iportList ={8080,8889};
|
||||
|
||||
Reference in New Issue
Block a user