将日志完整删除

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

View File

@ -6,7 +6,7 @@
<groupId>com.sunyard.sge.database</groupId> <groupId>com.sunyard.sge.database</groupId>
<artifactId>sydapi-database</artifactId> <artifactId>sydapi-database</artifactId>
<version>1.1</version> <version>1.0</version>
<name>sydapi-database</name> <name>sydapi-database</name>

View File

@ -51,7 +51,6 @@ public class FuncTest {
public void originLong() throws Exception { public void originLong() throws Exception {
SydApiBuilder builder = new SydApiBuilder(new String[]{"192.168.0.200"}, new int[]{8889}, 10, 15); SydApiBuilder builder = new SydApiBuilder(new String[]{"192.168.0.200"}, new int[]{8889}, 10, 15);
SydApi.SYD_SetLogConfig("./logs/",3); SydApi.SYD_SetLogConfig("./logs/",3);
Logger log = LogFactory.getLogger();
final SydApi api = builder.build(); final SydApi api = builder.build();
for (int i = 0; i < 1000; i++) { for (int i = 0; i < 1000; i++) {
int tmp = i; int tmp = i;
@ -67,7 +66,6 @@ public class FuncTest {
@Test @Test
public void originShort() throws Exception { public void originShort() throws Exception {
SydApi.SYD_SetLogConfig("./logs/",3); 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" }; String[] pcipList = {"192.168.0.100", "192.168.0.100", "192.168.0.100","192.168.0.100" };
int[] iportList ={8080,8889,8889,8889}; int[] iportList ={8080,8889,8889,8889};

View File

@ -15,9 +15,7 @@ public class LogTest {
threads[i] = new Thread(new Runnable() { threads[i] = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
SydLogger logger = SydLogFactory.getLogger();
for (int i = 0; i < max; i++) { for (int i = 0; i < max; i++) {
logger.debug("tttttttttttttttt");
} }
} }
}); });
@ -39,10 +37,6 @@ public class LogTest {
public static void main(String[] args) { 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); System.out.println(new byte[0].length);
} }