Overhaul debug logging

Debug logging now provides ConsoleDebug and ILog has been updated to
support the concept of debug logs. Debug logs are now controlled by
config.json instead of by preprocessor debug flag.
This commit is contained in:
Lucas Nicodemus 2020-05-19 21:14:06 -07:00
parent 19de422304
commit b76d906c59
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB
5 changed files with 68 additions and 14 deletions

View file

@ -520,6 +520,9 @@ namespace TShockAPI
[Description("Whether or not to show backup auto save messages.")]
public bool ShowBackupAutosaveMessages = true;
[Description("Whether or not the server should output debug level messages related to system operation.")]
public bool DebugLogs = false;
/// <summary>
/// Reads a configuration file from a given path
/// </summary>