Merge pull request #870 from NyxStudios/whitexz-general-devel

Adds SQL logging from WhiteX's fork; closes #869
This commit is contained in:
Lucas Nicodemus 2015-02-28 01:21:54 -07:00
commit c5625aa896
10 changed files with 785 additions and 154 deletions

View file

@ -325,6 +325,12 @@ namespace TShockAPI
[Description("The path of the directory where logs should be written into.")]
public string LogPath = "tshock";
[Description("Save logs to an SQL database instead of a text file. Default = false")]
public bool UseSqlLogs = false;
[Description("Number of times the SQL log must fail to insert logs before falling back to the text log")]
public int RevertToTextLogsOnSqlFailures = 10;
[Description("Prevents players from placing tiles with an invalid style.")]
public bool PreventInvalidPlaceStyle = true;