GameServerManagers / GameServerManagers/LinuxGSM
[FEATURE REQUEST] Separate variables for deleting log types
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
## User Story
As a server admin I want to be able to customise the delete days for each log type.
There is example:

All older logs as **7(-9) days** was **deleted**.
## Basic info
* Distro: [Ubuntu 16.04]
* Game: [CS:GO]
* Function: [Logging]
## Further Information
currently `logdays=7` is the only option that deleted all logs at 7 days. However, I would like the logs to delete different days depending upon my requirement. I would also like to have a custom log array to add custom logs for the server.
Example:
```
console_logdays="7" // `../LGSMFOLDER/logs/`
server_logdays="30" // `../csgo/logs/`
sm_logdays="50" // `../csgo/addons/sourcemod/logs/`
custom_logdays="365" // log days for CUSTOM folders
custom_logfolders_array=(../csgo/addons/sourcemod/logs/admins/ ../csgo/addons/sourcemod/logs/WCS/ ../csgo/addons/sourcemod/logs/admins/)** // setup custom folders in to array.
// Can used with ``Server Specific Directories`` example:
// `${systemdir}/addons/sourcemod/logs/kruzyapidor/`
```
## To Reproduce
Steps to reproduce the behaviour:
1. Setup server CSGO;
2. Add logdays="X" to config for delete older logs or use default value;
3. Wait X days;
4. Get delete all older logs as X days.
## Expected behaviour
I think that can help us (server owners) to easy setup logging. Because I don't know what **LGSM** delete ALL logs :c ( I think other (maybe?) don't know this too)
Contributor guide
Assessment
This issue has not been assessed yet.