LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[FEATURE REQUEST] Separate variables for deleting log types

Open BlackYuzia opened this issue 6 years ago • 3 comments

User Story

As a server admin I want to be able to customise the delete days for each log type.

There is example: image 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)

BlackYuzia avatar Apr 24 '19 23:04 BlackYuzia

This is a really good feature request. There is no bug as logdays is meant to delete all log files at X days. However, separating them out is a good idea.

Also allowing the user to customise add there own log directories to delete is a good idea (buit should be a separate issue).

I have reworded your issue to summaries the feature request. Thanks for this

dgibbs64 avatar Apr 25 '19 13:04 dgibbs64

hello @dgibbs64, any changes about that issue?

I mean, could we get any version of requested feature?

This could be a pure feature like:

  • simple black list files
# example
logdays=7
log_backlist=("my_file.log" "second_file_/mm.dd.yyyy/.log" ...) # That files do not be deleted anyway

BlackYuzia avatar Oct 16 '21 18:10 BlackYuzia

i will maybe have a go at this no promises

johnoclockdk avatar Oct 16 '21 21:10 johnoclockdk