CloudNet icon indicating copy to clipboard operation
CloudNet copied to clipboard

feat: Configurable log levels

Open RobotHanzo opened this issue 1 year ago • 1 comments

Motivation

The current log file level have been hard coded to DEBUG, and this causes a huge build up of logs (more the few hundreds of megabytes on my server). Things like docker http requests, minecraft packets are all logged in here, and wouldn't be needed by the average user under normal conditions.

Modification

Offers a way to modify the log level via system properties, and made INFO the default level of log file level

Result

No more useless logs

Other context

N/A

RobotHanzo avatar Jul 29 '24 16:07 RobotHanzo

I have to think about this one. I like having more logging in files because when searching for issues you want to have the information together and not enable debug mode first and reproduce again.

But adding a sys prop is fine.

0utplay avatar Jul 29 '24 16:07 0utplay