From b754f142a1deea68c622405797f76d2e7acd3453 Mon Sep 17 00:00:00 2001 From: Chris <2648373+QuiCM@users.noreply.github.com> Date: Fri, 14 May 2021 22:08:32 +0930 Subject: [PATCH] Change logpath to `./tshock/logs` by default --- TShockAPI/Configuration/TShockConfig.cs | 2 +- TShockAPI/TShock.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Configuration/TShockConfig.cs b/TShockAPI/Configuration/TShockConfig.cs index 0f1139e6..ed78bb53 100644 --- a/TShockAPI/Configuration/TShockConfig.cs +++ b/TShockAPI/Configuration/TShockConfig.cs @@ -41,7 +41,7 @@ namespace TShockAPI.Configuration /// The path to the directory where logs should be written to. [Description("The path to the directory where logs should be written to.")] - public string LogPath = "tshock"; + public string LogPath = "tshock/logs"; /// Whether or not the server should output debug level messages related to system operation. [Description("Whether or not the server should output debug level messages related to system operation.")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index c60e5961..48c9bfe8 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -68,7 +68,7 @@ namespace TShockAPI /// LogFormat - This is the log format, which is never set again. private static string LogFormat = LogFormatDefault; /// LogPathDefault - The default log path. - private const string LogPathDefault = "tshock"; + private const string LogPathDefault = "tshock/logs"; /// This is the log path, which is initially set to the default log path, and then to the config file log path later. private static string LogPath = LogPathDefault; /// LogClear - Determines whether or not the log file should be cleared on initialization.