Delete log files older than one month

This commit is contained in:
2dust
2022-04-03 17:01:45 +08:00
parent bb828a4e06
commit 82924278b5
2 changed files with 32 additions and 2 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ namespace v2rayN
{
Logging.Setup();
Utils.SaveLog($"v2rayN start up | {Utils.GetVersion()} | {Utils.GetExePath()}");
Logging.ClearLogs();
//设置语言环境
string lang = Utils.RegReadValue(Global.MyRegPath, Global.MyRegKeyLanguage, "zh-Hans");
@@ -42,7 +43,7 @@ namespace v2rayN
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
Application.Run(new MainForm());
}
else
{