将日志完整删除

This commit is contained in:
junj2.liang
2022-09-08 14:28:17 +08:00
parent 6e54421b93
commit 6292e2e283
3 changed files with 1 additions and 9 deletions
-2
View File
@@ -51,7 +51,6 @@ public class FuncTest {
public void originLong() throws Exception {
SydApiBuilder builder = new SydApiBuilder(new String[]{"192.168.0.200"}, new int[]{8889}, 10, 15);
SydApi.SYD_SetLogConfig("./logs/",3);
Logger log = LogFactory.getLogger();
final SydApi api = builder.build();
for (int i = 0; i < 1000; i++) {
int tmp = i;
@@ -67,7 +66,6 @@ public class FuncTest {
@Test
public void originShort() throws Exception {
SydApi.SYD_SetLogConfig("./logs/",3);
Logger log = LogFactory.getLogger();
String[] pcipList = {"192.168.0.100", "192.168.0.100", "192.168.0.100","192.168.0.100" };
int[] iportList ={8080,8889,8889,8889};
-6
View File
@@ -15,9 +15,7 @@ public class LogTest {
threads[i] = new Thread(new Runnable() {
@Override
public void run() {
SydLogger logger = SydLogFactory.getLogger();
for (int i = 0; i < max; i++) {
logger.debug("tttttttttttttttt");
}
}
});
@@ -39,10 +37,6 @@ public class LogTest {
public static void main(String[] args) {
Logger log = LogFactory.createLogger("./test-log/", 3);
log.error("error");
log.info("info");
log.debug("debug");
System.out.println(new byte[0].length);
}