Обновление библеотеки dhaverdLogs

This commit is contained in:
BelPE 2023-04-21 16:38:52 +08:00
parent 7714b7d932
commit 53fc98502b
11 changed files with 10 additions and 1 deletions

Binary file not shown.

View File

@ -4,5 +4,6 @@
"http://ideco.mcs.br/wpad.dat", "http://ideco.mcs.br/wpad.dat",
"http://proxy.mcs.br:8080/array.dll?Get.Routing.Script" "http://proxy.mcs.br:8080/array.dll?Get.Routing.Script"
], ],
"setRepeatTimeMs" : "60000" "setRepeatTimeMs" : "60000",
"deleteBySevenDays" : "true"
} }

Binary file not shown.

View File

@ -36,6 +36,7 @@ public class Main {
public static void main(String[] args) throws IOException, ParseException { public static void main(String[] args) throws IOException, ParseException {
setLogDir("logs"); setLogDir("logs");
setLogName("startup"); setLogName("startup");
logCleaner(getDeleteTime());
bindSocket(); bindSocket();
repeatTime = getRepeatTime(); repeatTime = getRepeatTime();
systemTray(); systemTray();

View File

@ -71,4 +71,11 @@ public class loadConfig {
return Integer.parseInt(result); return Integer.parseInt(result);
} }
public static boolean getDeleteTime() throws IOException, ParseException {
JSONObject jo = getJsonObjConfig();
String result = String.valueOf(jo.get("deleteBySevenDays"));
setLog("Config Loading", "Delete by seven days: " + result, true, false);
return Boolean.parseBoolean(result);
}
} }