Fixed the cleanup of the log files generated by the auto processes (Backup, Update and Shutdown/Restart)

Added new Log settings which allow you to turn if on/off and set the number of days/files to retain
Language file updates
This commit is contained in:
Brett Hewitson 2021-12-18 21:31:36 +10:00
parent f582e1e72a
commit dace70a37c
29 changed files with 821 additions and 431 deletions

View file

@ -1451,18 +1451,6 @@ namespace ServerManagerTool {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string SteamAPIKey {
get {
return ((string)(this["SteamAPIKey"]));
}
set {
this["SteamAPIKey"] = value;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://steamcommunity.com/dev/apikey")]
@ -1635,12 +1623,12 @@ namespace ServerManagerTool {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string ASMUniqueKey {
public string ServerManagerUniqueKey {
get {
return ((string)(this["ASMUniqueKey"]));
return ((string)(this["ServerManagerUniqueKey"]));
}
set {
this["ASMUniqueKey"] = value;
this["ServerManagerUniqueKey"] = value;
}
}
@ -1803,9 +1791,9 @@ namespace ServerManagerTool {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://arkservermanager.freeforums.net/board/22/plugins")]
public string ASMPluginUrl {
public string ServerManagerPluginUrl {
get {
return ((string)(this["ASMPluginUrl"]));
return ((string)(this["ServerManagerPluginUrl"]));
}
}
@ -2374,7 +2362,7 @@ namespace ServerManagerTool {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool UpdateDirectoryPermissions {
get {
return ((bool)(this["UpdateDirectoryPermissions"]));
@ -3044,5 +3032,41 @@ namespace ServerManagerTool {
this["DiscordBotAllowAllBots"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool LoggingEnabled {
get {
return ((bool)(this["LoggingEnabled"]));
}
set {
this["LoggingEnabled"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("30")]
public int LoggingMaxArchiveFiles {
get {
return ((int)(this["LoggingMaxArchiveFiles"]));
}
set {
this["LoggingMaxArchiveFiles"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("30")]
public int LoggingMaxArchiveDays {
get {
return ((int)(this["LoggingMaxArchiveDays"]));
}
set {
this["LoggingMaxArchiveDays"] = value;
}
}
}
}