patrix87 / PowerShellGSM

A Comprehensive PowerShell Tool for Simple Automated Game Server Management.
https://github.com/patrix87/PowerShellGSM/
MIT License
111 stars 19 forks source link

Request: Log Cleanup #15

Closed vikadev closed 1 year ago

vikadev commented 1 year ago

First off, thank you for this script! It's awesome.

Just wanted to throw in a suggestion of allowing the user to set how long they want to keep the logs for (maybe in days) and then have the script do some cleanup. I had an issue with the process lock and generated almost 20,000 logs in the span of a week or so.

Great work and thanks again!

-M

ConnectivityChris commented 1 year ago

@vikadev You can set server log limit in the global config https://github.com/patrix87/PowerShellGSM/blob/main/global.psm1#L17

patrix87 commented 1 year ago

I'm looking into a fix to exclude state checks from the logs. since those run every two minutes.

patrix87 commented 1 year ago

This is fixed in the last release

vikadev commented 1 year ago

Thank you both for this! Sorry about getting back to you so late!