Dahlgren / arma-server-web-admin

Web based server manager for Arma
MIT License
125 stars 47 forks source link

Sort logs by descending date and paginate #167

Closed Dystroxic closed 3 years ago

Dystroxic commented 4 years ago

On a Linux server, there's no limit to the number of .rpt files there can be (unlike Windows, it doesn't delete old ones). Therefore, the "Logs" page can have hundreds of log files, and the one you're looking for (most recent) is at the very bottom.

It would be great if there could be sorting of the files by newest-first (or better yet, optional sort by each column), and pagination of logs (or only loading the most recent N logs, with N being a setting in config.js).

Frozen-byte commented 4 years ago

This may temporarily help you; while waiting for a proper fix: Make use of the Linux logrotate program to keep the folder slim.