Add log rotation threshold configuration

This commit is contained in:
Sam Chow 2018-06-29 16:07:51 -04:00
parent 31e4c6d380
commit 84f604739f
4 changed files with 26 additions and 1 deletions

View file

@ -386,6 +386,23 @@
</div>
</td>
</tr>
<tr>
<td>Log Rotation Threshold:</td>
<td>
<span class="config-string-field" binding="config.ACTION_LOG_ROTATION_THRESHOLD"
pattern="[0-9]+(m|w|h|d|s)"></span>
<div class="help-text">
The number of days after which to archive action logs to storage. Must be expressed in a duration string form: <code>30m</code>, <code>1h</code>, <code>1d</code>, <code>2w</code>.
</div>
<div class="help-text">
Note: The rotation threshold should be considered a balancing act between user history and size of database.
</div>
<div class="help-text">
Larger time windows will result in more logs, but give users more history to view.
Anything less than <code>2w</code> is not recommended.
</div>
</td>
</tr>
</table>
</div>