Add an option and function for debug modes which can help end users report issues, and contributors diagnose and fix these issues.
There can be modes such as:
-
STRICT which hold back sensitive information like pre-handled signatures, player keys, usernames, etc. and just display their length in debug logs.
-
NEED_TO_KNOW which will still hold back sensitive information, but will log the first few characters in a signature or player key. (to ensure they are valid values)
-
FULL which logs all information.
(Other values can be introduced later on)