A simple option called logLevel, that could be added to the config.json file.
It probably will have 2 valid values:
- ERROR: keeps logging only the error messages to the console.
- INFO: logs every command usage and action that happens with the application.
- As other features come, and more logging will happen, a third WARNING level might get added as well.
The INFO logging will probably need log types before the log messages: [COMMAND], [ACTION], etc.
The template will be:
[yyyy:MM:dd - hh:mm:ss] [log-level] [optional-info-action] : log message...
For example:
[2024:07:08 - 09:25:23] [INFO] [COMMAND] : User {username} used the command {command-name}.
Some coloring for different log levels might get added as well.
A simple option called
logLevel, that could be added to theconfig.jsonfile.It probably will have 2 valid values:
The INFO logging will probably need log types before the log messages: [COMMAND], [ACTION], etc.
The template will be:
[yyyy:MM:dd - hh:mm:ss] [log-level] [optional-info-action] : log message...
For example:
[2024:07:08 - 09:25:23] [INFO] [COMMAND] : User
{username}used the command{command-name}.Some coloring for different log levels might get added as well.