vb2007 / discordbot

A simple discord bot of mine developed with node.js's discord.js library.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Feature: logLevel configuration option #53

Open vb2007 opened 3 months ago

vb2007 commented 3 months ago

A simple option called logLevel, that could be added to the config.json file.

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.