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

@ -1761,7 +1761,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"]));
@ -2197,5 +2197,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;
}
}
}
}