Skip to content

Feature: logLevel configuration option #53

@vb2007

Description

@vb2007

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.

Metadata

Metadata

Assignees

Labels

featureGeneral non-command feature request

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions