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

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