Adds SQL logging from WhiteX's fork; closes #869
This commit is contained in:
parent
c215ff8e10
commit
0459dfca11
10 changed files with 743 additions and 144 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue