KitsuneLab-Development / K4-System

K4-Systems is a plugin that enhances the server with features such as a playtime tracker, statistical records, and player ranks. Additionally, it includes VIP functions and admin commands for added functionality.
GNU General Public License v3.0
104 stars 35 forks source link

[ENHANCEMENT] Disable modules initializing logs #170

Closed hks27d closed 4 months ago

hks27d commented 4 months ago

Description of the enhancement Please add a setting to disable modules initializing logs like these:

2024-04-22 00:40:55.769 +03:00 [INFO] plugin:K4-System Initializing 'ModuleRank'
2024-04-22 00:40:55.850 +03:00 [INFO] plugin:K4-System Initializing 'ModuleStat'
2024-04-22 00:40:55.850 +03:00 [INFO] plugin:K4-System Initializing 'ModuleTime'
2024-04-22 00:40:55.851 +03:00 [INFO] plugin:K4-System Initializing 'ModuleUtils'

Problem and motivation If the server has several restarts during a week, the logs folder will be full of useless information. This takes space on the disk on the long-term. There should be a setting to enable those logs only when debugging. In production there is no need for those logs.

Suggested solution Completely disable the modules initializing logs mentioned above using a new setting in config. Those logs are needed only when debugging.

K4ryuu commented 4 months ago

This feature has been added to the upcoming release which gonna be uploaded shortly. Thanks