Added customizable command log format (Date+Time are now available)

Added the option format to config files (config.yml + worldedit.properties). By default, current date and time are displayed.
The formatting function is implemented by analogy with the class java.util.logging.SimpleFormatter
This commit is contained in:
Qveshn
2018-05-19 18:47:45 +03:00
parent f67f2ed93e
commit f680635ded
8 changed files with 67 additions and 27 deletions

View File

@ -82,6 +82,7 @@ public class YAMLConfiguration extends LocalConfiguration {
registerHelp = config.getBoolean("register-help", true);
logCommands = config.getBoolean("logging.log-commands", logCommands);
logFile = config.getString("logging.file", logFile);
logFormat = config.getString("logging.format", logFormat);
superPickaxeDrop = config.getBoolean("super-pickaxe.drop-items",
superPickaxeDrop);