Logging now writes to the database (#110)

This commit is contained in:
Michael Green
2023-09-18 16:54:37 +10:00
committed by GitHub
parent 031edd7088
commit 67447d49b5
9 changed files with 131 additions and 86 deletions

View File

@@ -82,7 +82,7 @@ namespace gaseous_tools
{
get
{
string logFileExtension = "json";
string logFileExtension = "txt";
string logPathName = Path.Combine(LogPath, "Server Log " + DateTime.Now.ToUniversalTime().ToString("yyyyMMdd") + "." + logFileExtension);
return logPathName;
@@ -468,7 +468,8 @@ namespace gaseous_tools
{
public bool DebugLogging = false;
public int LogRetention = 30;
// log retention in days
public int LogRetention = 7;
public enum LoggingFormat
{